This is a local alternative to [pkgdown::build_favicons()].
It is also expected to work on more cases and avoid strange issues where some logo elements were dropped from the online converter used by pkgdown.
You can install the development version of pkgicon from GitHub with:
# install.packages("pak")
# pak::pak("Bisaloo/pkgicon")
install.packages("pkgicon", repos = c('https://bisaloo.r-universe.dev', 'https://cloud.r-project.org'))
To generate your package favicons, please the source logo (ideally saved
as an .svg) under one of the locations recognized by pkgdown and
r-universe:
./logo.svg (. is the root of your R package, where the
DESCRIPTION file is located)./man/figures/logo.svg./logo.png./man.figures/logo.pngAnd then run:
pkgicon::build_pkgdown_favicons(
pkg = "." # change this to the path of the root of your pkg
)