Get the URL of a hex sticker for a given R package (if one exists).
Reference for one or more GitHub repository in owner/repo format
(e.g."neurogenomics/rworkflows"
), or an R package name
(e.g. "rworkflows"
).
Paths to DESCRIPTION file(s) R package(s).
Path to hex sticker file.
Name of the GitHub repository branch to use.
Height of the hex sticker in pixels
(when add_hex=TRUE
).
Check whether the URL actually exists.
Wrap the URL in an html "img" tag and
set its height with hex_height
.
Print messages.
URL
hex_url <- get_hex(refs=c("neurogenomics/rworkflows",
"neurogenomics/echolocatoR"))
#> When refs is provided, paths must have the same length (or be set to NULL). Setting paths=NULL.
#> Cannot find DESCRIPTION for: echolocatoR
#> Cannot find DESCRIPTION file for: neurogenomics/echolocatoR
#> Finding hex sticker(s) for 2 package(s).
#> Hex URL does not exist (or is not public). Returning NULL.