Dear R-users,

I am going through the last steps of package prep before submission to CRAN
and I have the following problem. My package contains a single vignette
written in optimbase.Rnw and that in stored in /inst/doc. optimbase.Rnw
contains multiple \input{} statements that refer to .tex files stored in
/inst/latex.ref/, e.g.:
\input{../latex.ref/optimbase-package.tex}

When I compile my Rnw file in Kile or when I run R CMD build against my
source, everything works just fine. However, when I check the .tar.gz
archive file, the following NOTE is returned to the shell

* checking package vignettes in 'inst/doc' ... NOTE
*** PDFLaTeX Errors ***
File
/home/sebastien/Documents/scaRabee/optimbase.Rcheck/inst/doc/optimbase.Rnw :
Running 'texi2dvi' on 'optimbase.tex' failed.
LaTeX errors:
! LaTeX Error: File `../latex.ref/optimbase-package.tex' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex)
! Emergency stop.
<read *>
l.262 \input{../latex.ref/optimbase-package.tex}
^^M
! ==> Fatal error occurred, no output PDF file produced!

It appears the sub-folder optimbase.Rcheck/inst was stripped from the
subsubfolder /latex.ref (which is now located in
optimbase.Rcheck/optimbase/), which explains why PDFLatex complains. How
should I structure my package source so I don't get this error message?

Any help would be greatly appreciated.

Thanks

Sebastien

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to