On Jul 28, 2011, at 6:56 PM, Alexander James Rickett wrote:

> I'm trying to get ready to submit a package to CRAN, but in order for the 
> package to install on OS X, I need to temporarily set the environment 
> variable NOAWT=1.  I put 'export NOAWT=1' in my package's 'configure' script, 
> and 'R CMD INSTALL MyPackage' returns with no errors.   However when I do 'R 
> CMD CHECK MyPackage', the installation test fails, because the configure 
> script is not invoked.  If I set the variable manually in Terminal before I 
> run CHECK, then it passes all the tests.
> 
> Is the configure script the right place to be setting this variable?
> 
> If so, why isn't configure being invoked as part of R CMD CHECK?
> 
> If not, where should I set the environmental variable NOAWT=1 such that the 
> change will be reflected in the R CMD CHECK installation test?
> 

You should not set it in the package at all. It is a run-time variable specific 
to OS X checking so it is expected to be set in the OS and the CRAN checks on 
OS X set it automatically.

If you are testing your package locally, you can simply use

NOAWT=1 R CMD check DeducerText_0.1-0.tar.gz

Cheers,
Simon


> Here is the source tar-ball of my package if you want to try for yourself.
> http://www.cs.ucla.edu/~alexalex/R/src/contrib/DeducerText_0.1-0.tar.gz
> 
> Thanks.
> 
> --
> Alex Rickett
> ack.van...@gmail.com
> ______________________________________________
> r-de...@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to