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

2019-11-18 Thread Daniel Sjoberg
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. Tha

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

2019-11-11 Thread Dirk Eddelbuettel
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, hen

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

2019-11-11 Thread Daniel Sjoberg
Awesome, I'll check it out. I do like the HTML vignettes, so I am hoping I can get it working in that format! On Mon, Nov 11, 2019 at 1:23 PM Dirk Eddelbuettel wrote: > > On 11 November 2019 at 12:44, Daniel Sjoberg wrote: > | Thank you Ben. That is a great suggestion. While searching for > |

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

2019-11-11 Thread Dirk Eddelbuettel
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 DESCRIPTIO

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

2019-11-11 Thread Daniel Sjoberg
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 solutio

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

2019-11-10 Thread Ben Bolker
I don't know the particular answer to your question, but perhaps an alternative way to go about this is to wrap the code in your vignette that depends on this package in an if (requireNamespace("gt")) {} clause (and perhaps supply pre-compiled versions of the vignette in the doc/ directory)? (An

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

2019-11-10 Thread Daniel Sjoberg
There is a package only available on GitHub that prints beautiful tables. I list this package in the `Enhances:` section of my package's DESCRIPTION file. I would like to show the use of this enhancement in a vignette. I use the code below in a vignette to install the package to a temporary folde