From murdoch.duncan at gmail.com  Fri Oct 28 16:53:39 2011
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Fri, 28 Oct 2011 10:53:39 -0400
Subject: [Rd] R CMD check and error in an \Sexpr in an Rd file
In-Reply-To: <4EAAC0DF.7060704@cbio.uct.ac.za>
References: <4EAAC0DF.7060704@cbio.uct.ac.za>
Message-ID: <4EAAC1F3.8020505@gmail.com>

On 28/10/2011 10:49 AM, Renaud Gaujoux wrote:
> Hi,
>
> another Rd related issue I encountered is that if an error occurs in an
> \Sexpr in an Rd file, then on get the following error:
>
> * checking for portable compilation flags in Makevars ... OK
> * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
> * checking examples ... ERROR
> Error in paste(before, x, after, sep = "") : object 'exfile' not found
> Execution halted
>
> To reproduce, put a call like this in an Rd section:
>
> \Sexpr[results=verbatim, stage=render]{x<- 1; stop("sexpr error")}
>
> The strange thing is that it occurs at the example checking step.
> Not sure why it does not break before.
>
> Thank you.
>
> Renaud
>
> PS: I am on R version 2.13.2 (2011-09-30) - x86_64-pc-linux-gnu (64-bit)
>

I would update to 2.13.2 patched, or the release candidate of 2.14.0.

Duncan Murdoch



[Rd] R CMD check and error in an \Sexpr in an Rd file
Duncan Murdoch