powered by
This function helps you use a logo in your package:
Enforces a specific size
Stores logo image file at man/figures/logo.png
man/figures/logo.png
Produces the markdown text you need in README to include the logo
use_logo(img, geometry = "240x278", retina = TRUE)
The path to an existing image file
a magick::geometry string specifying size. The default assumes that you have a hex logo using spec from http://hexb.in/sticker.html.
TRUE, the default, scales the image on the README, assuming that geometry is double the desired size.
TRUE
# NOT RUN { use_logo("usethis.png") # }
Run the code above in your browser using DataLab