Re: [Rd] Trouble building package using R in development

2013-01-18 Thread Hadley Wickham
> To what end is the --vanilla here? Writing R Extensions says that R CMD > check (and R CMD build) are invoked via R --vanilla so that would seem > redundant, although my experience from several hours working this > through today suggests there is a difference between R --vanilla CMD > check and R

Re: [Rd] Trouble building package using R in development

2013-01-16 Thread Gavin Simpson
On Wed, 2013-01-16 at 14:39 -0600, Hadley Wickham wrote: > > To circumvent this, I check using: > > > > R --no-init-file CMD check foo_1.0.tar.gz > > In devtools, we take considerable care to match the R you're running > with the R you're checking in, so we also set the following > environmental v

Re: [Rd] Trouble building package using R in development

2013-01-16 Thread Hadley Wickham
> To circumvent this, I check using: > > R --no-init-file CMD check foo_1.0.tar.gz In devtools, we take considerable care to match the R you're running with the R you're checking in, so we also set the following environmental variables: env <- c( "LC_ALL" = "C", "R_LIBS" = paste(.libPaths

Re: [Rd] Trouble building package using R in development

2013-01-16 Thread Henrik Bengtsson
On Wed, Jan 16, 2013 at 8:59 AM, Henrik Bengtsson wrote: > On Wed, Jan 16, 2013 at 7:25 AM, Gavin Simpson > wrote: >> As a follow-up, shortly after I clicked send I decided to do something >> silly and rename my ~/.Renviron (which set R_LIBS too). Silly because >> the Writing R Extensions (WRE)

Re: [Rd] Trouble building package using R in development

2013-01-16 Thread Henrik Bengtsson
On Wed, Jan 16, 2013 at 7:25 AM, Gavin Simpson wrote: > As a follow-up, shortly after I clicked send I decided to do something > silly and rename my ~/.Renviron (which set R_LIBS too). Silly because > the Writing R Extensions (WRE) manual says that these startup files are > not read as R is invoke

Re: [Rd] Trouble building package using R in development

2013-01-16 Thread Gavin Simpson
As a follow-up, shortly after I clicked send I decided to do something silly and rename my ~/.Renviron (which set R_LIBS too). Silly because the Writing R Extensions (WRE) manual says that these startup files are not read as R is invoked with --vanilla. Once I renamed ~/.Renviron so it was not bei