TheoreticalEcology / EcoPhyloSim

R package for simulation of biogeographical and phylogenetic data
http://theoreticalecology.github.io/EcoPhyloSim/
0 stars 0 forks source link

Vignette is not compiled during package installation #44

Closed florianhartig closed 8 years ago

stefan-paul commented 8 years ago

Is working now but only if you install from GitHub. Found this about ~ the same problem: " I think this is a feature:

if you're installing from source, vignettes are always built

if you're installing from a binary, they're not built, and will only be available if they were built when the binary was made

This approach means that you can distribute vignettes in binary packages to people who might not be able to build them from source." http://stackoverflow.com/questions/18588227/r-cmd-install-build-package-vignettes-missing

So I think this is fixed.

florianhartig commented 8 years ago

Hmm ... but if I compile from Rstudio, I'm installing from source. The package is not building the vignette if I am either installing / clean and rebuild / or do a check.

It's good that we know it builds when installing from GH, but there should be a solution also for local builds.

I'm leaving this open, but doesn't have top priority!

stefan-paul commented 8 years ago

You're right! But: RStudio is using R CMD INSTALL to install the package (even though it is called build and reload). This is not building the vignette. If installing from GitHub you can force the compilation of the vignette by the argument "build_vignette".

Check is building the Vignette. You'll find it in the PhylGeo.Rcheck directory....

florianhartig commented 8 years ago

Ah, OK - is it then also properly added to the package index? Because this is also what's annoying me.

I would say let's leave this ticket open but unsolved for the moment, if we can find a solution for this it would be good but it's not top priority!

florianhartig commented 8 years ago

I think in the end this is not a but but a feature of Rstudio - for future reference, one can install via devtools::build_vignettes("PackageName")