[Rd] Trouble building package using R in development
    Hadley Wickham 
    h.wickham at gmail.com
       
    Wed Jan 16 21:39:46 CET 2013
    
    
  
> 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(), collapse = .Platform$path.sep),
    "CYGWIN" = "nodosfilewarning",
    "R_TESTS" = "",
    "NOT_CRAN" = "true",
    "TAR" = auto_tar(),
)
and always run /path/to/current/R --vanilla CMD check ...
Hadley
-- 
Chief Scientist, RStudio
http://had.co.nz/
    
    
More information about the R-devel
mailing list