[R] bootstrap vignette construction and package installation

From: Murat Tasan <mmuurr_at_gmail.com>
Date: Tue, 03 May 2011 13:20:57 -0700 (PDT)

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?

thanks much for any help,


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. Received on Thu 05 May 2011 - 06:25:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 May 2011 - 07:00:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive