It would appear that printing the error message to stderr() is what is
causing the build to fail; replace
try(stop('err'))
with
cat('Error in try(stop("err")) : err\n', file = stderr())
and I get the same failure.
Best,
luke
On Wed, 11 Apr 2007, Martin Morgan wrote:
> 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"
>
>
>
--
Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa Phone: 319-335-3386
Department of Statistics and Fax: 319-335-3017
Actuarial Science
241 Schaeffer Hall email: luke at stat.uiowa.edu
Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu