[Rd] R CMD build fails with try(stop()) in vignette

Martin Morgan mtmorgan at fhcrc.org
Wed Apr 11 22:43:28 CEST 2007


A vignette in <pkg>/inst/doc with

\documentclass[]{article}
\begin{document}
<<test>>=
try(stop('err'))
@ 
\end{document}

produces an error with R CMD build <pkg>:

...
** building package indices ...
* DONE (testPkg)
* creating vignettes ... ERROR
Error in try(stop("err")) : err

This is not seen with Sweave alone.

> sessionInfo()
R version 2.5.0 beta (2007-04-11 r41127) 
x86_64-unknown-linux-gnu 

locale:
LC_CTYPE=en_US;LC_NUMERIC=C;LC_TIME=en_US;LC_COLLATE=en_US;LC_MONETARY=en_US;LC_MESSAGES=en_US;LC_PAPER=en_US;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US;LC_IDENTIFICATION=C

attached base packages:
[1] "stats"     "graphics"  "grDevices" "utils"     "datasets"  "methods"  
[7] "base"     


-- 
Martin Morgan
Bioconductor / Computational Biology
http://bioconductor.org



More information about the R-devel mailing list