bootstrap vignette construction and package installation
On 03.05.2011 22:20, Murat Tasan wrote:
hi all - i'm trying to 'R CMD build' a package, but i have what appears to be a bootstrapping problem: i've included a vignette in my package, with R code interwoven (and built using Sweave), but in this documentation i have a code line:
library(MyPackage)
now, when trying to build a .tar.gz install-able version of my package in a clean state, i remove the original compiled/installed package, and the build fails because Sweave wants to execute the interwoven R code even though the package hasn't yet been installed. i got around it by temporarily just hiding the the inst/doc/ directory, installing the now-able-to-build package, then re-building the package after the installation. but this is a pretty clunky solution, and i imagine there's a more elegant way to get around this bootstrapping problem that i'm just not aware of. any thoughts?
Not really: R CMD build should install a temporary copy of your package in order to be able to rebuild the vignettes. What is the complete output of R CMD build? Is the package available for us for testing? Uwe Ligges
thanks much for any help, -murat
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.