Skip to content
Prev 49326 / 63424 Next

Pkg creation: Sweave: multiple files vignette: Error in R CMD check

My guess is that your child Rnw file was not copied to inst/doc during
R CMD build or check. You may read the section 1.4 of the R-exts
manual: http://cran.rstudio.com/doc/manuals/r-release/R-exts.html#Writing-package-vignettes
So it seems you will need a .install_extras file to make sure the
child Rnw file is copied along with the parent .Rnw. I do not think
you have to obfuscate the path of the child Rnw file like
../../whatever/... but you do have to change its file extension if and
only if you put it under the root directory vignettes/ (it should be
fine if it is under a sub directory).

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Web: http://yihui.name
On Thu, Nov 6, 2014 at 8:44 AM, <rolandh at uni-muenster.de> wrote:
Message-ID: <CANROs4dhXA5Q1VFg_GRDGd=F8xOKdW+=Qr-WNW7Bh1o-H3JayA@mail.gmail.com>
In-Reply-To: <permail-20141106144410fe5316b600000b3a-rolandh@message-id.uni-muenster.de>