[R-pkg-devel] Install Package from GitHub in Vignette
Daniel Sjoberg
d@n|e|d@@joberg @end|ng |rom gm@||@com
Mon Nov 18 13:48:41 CET 2019
Thank you for all the great tips! I ended up creating a drat package repo,
and installing the packages from there with `Additional_repositories:` tag
in the description. With this method, I was able to keep the vignettes as
R markdown docs and the pkgdown site did not need any modifications.
Thanks!~
On Tue, Nov 12, 2019 at 12:40 AM Dirk Eddelbuettel <edd using debian.org> wrote:
>
> On 11 November 2019 at 16:17, Daniel Sjoberg wrote:
> | Awesome, I'll check it out. I do like the HTML vignettes, so I am
> hoping I
> | can get it working in that format!
>
> Well, as I said (but wrote poorly, dropping a "non"): Mark's approach is
> for
> pdf. I like as you then get by with Sweave only, hence not depending on
> anything that could change or break.
>
> For html, there is also a solution by Henrik involving his R.rsp package.
> See
> eg https://stackoverflow.com/a/24111191/143305
>
> Dirk
>
> | On Mon, Nov 11, 2019 at 1:23 PM Dirk Eddelbuettel <edd using debian.org>
> wrote:
> |
> | >
> | > 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
> | >
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
>
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list