From mtmorgan at fhcrc.org  Wed Apr 11 22:43:28 2007
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Wed, 11 Apr 2007 13:43:28 -0700
Subject: [Rd] R CMD build fails with try(stop()) in vignette
Message-ID: <6phps6aprpr.fsf@gopher4.fhcrc.org>

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



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