[R-pkg-devel] Install Package from GitHub in Vignette

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Mon Nov 11 18:52:18 CET 2019


On 11 November 2019 at 12:44, Daniel Sjoberg wrote:
| Thank you Ben. That is a great suggestion.  While searching for
| instructions on using pre-compiled vignettes, I came across a few posts
| recommending the dependency package be stored in a drat repository on
| GitHub and using the DESCRIPTION `Additional_repositories:` tag to point to
| it.  This solution seems easier in my current workflow, so I am going to
| give that a try first.  But if the same problems persist, I am absolutely
| moving to pre-complied vignettes.

It depends on _how_ you compute your vignette but for pdf vignettes a very
simple solution is offered by Mark here:

   https://www.markvanderloo.eu/yaRb/2019/01/11/add-a-static-pdf-vignette-to-an-r-package/

I have switched a few packages of mine to this scheme.

Of course, if you are after html vignettes then this does apply directly, but
maybe you could still precompute a fancy gt table, take a screenshot and just
include it as an image...

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-package-devel mailing list