Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A Local and Robust Way to Generate Favicons for Package Documentation Sites

Notifications You must be signed in to change notification settings

Bisaloo/pkgicon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkgicon

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.

Installation

You can install the development version of pkgicon from GitHub with:

# install.packages("pak")
pak::pak("Bisaloo/pkgicon")

Example

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.png

And then run:

pkgicon::build_pkgdown_favicons(
  pkg = "." # change this to the path of the root of your pkg
)

About

A Local and Robust Way to Generate Favicons for Package Documentation Sites

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages