Skip to contents

Finders

Functions that can be used to look for hex logos online.

find_hex()
Finds hex logos for given packages
scavenge()
Same as [find_hex], but with extra raccoons

Internal

Internal functions.

catch()
Catches errors from a given expression. Can be used in a pipe.
check_known_packages()
Searches a list of known package hex links for a given package name
check_known_repos()
Searches a list of known package hex curated lists for a given package name
clean_repo_links()
Returns gitub repo links based on given URLs
crop_image()
Crops the empty space from a image
download_logo()
Download a logo image
generate_hex()
Generates a default logo for a package.
get_best_image()
Returns the best image path from a list of image paths
get_cran_info()
Returns CRAN information about a given package
get_endpoint_content()
Fetch the content of a endpoint. Multiple branches can be given, the content returned will also include which was the valid branch.
get_metacran_info()
Returns metacran information about a given package
get_possible_paths()
Search the given content for paths that match the constrains from ignore_patterns and logo_patterns.
keep_good_ratio_images()
Filters a list of image entries keeping images that might be a logo
locate_repo()
Finds the best repo for a given package
log()
Logs a given message.
search_repo_logo()
Searches a given github repo URL for the best hex logo image.
url_file_exists()
Checks if a given url is valid and available.