Skip to content
Prev 5528 / 12125 Next

[R-pkg-devel] Including fonts in an rmarkdown vignette

David

If you are ok to use one of the fonts available on google font, you could use package gfonts (in Suggests):
https://cran.r-project.org/web/packages/gfonts/vignettes/gfonts.html <https://cran.r-project.org/web/packages/gfonts/vignettes/gfonts.html>

As it will be ? inline ?, your document size could inflate (I guess it could be an issue with CRAN) - if only one font, size should be ok.

Otherwise, you also could add a css chunk to import the font from a public server - if no internet connexion, nothing will break.

David