Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
install_github() doesn't build vignette PDFs & local=FALSE doesn't work either #344
The new default behavior of install_github() doesn't build the PDFs from Rnw files in the vignettes directory.
> install_github('devtools',local=FALSE) Installing github repo(s) devtools/master from hadley Downloading devtools.zip from https://github.com/hadley/devtools/archive/master.zip Installing package from /var/folders/qm/fvhzvrvx1qs1cr8c0pkk5f9m0000gn/T//RtmpRMuUAQ/devtools.zip Error in install(pkg_path, local = TRUE, quiet = quiet, ...) : formal argument "local" matched by multiple actual arguments
Downloading from github and using
Hmmm, actually there's a bit of a recursion problem here - to build the vignettes you usually need to have install the package first. So it might be better to install the package, then build the vingnettes, then reinstall. Not sure how
PDFs created using Rnw files but also including lots of additional images and using resampling, so they are slow to generate. I don't want to regenerate them every time I check the package :( Furthermore, the files use some custom style files. So it seems simpler just to get the PDF compiled and provide it as a done deal.
My current solution is to put the PDFs in inst/PDFS and then put a real vignette with links to these on github (even though the files are actually also inside the package).
I suppose the other option would be to include them as additional documentation that isn't a vignette, but then they don't show up when searching for vignettes.