Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] Problem with R CMD BATCH on R-2.5.0 due to Sys.unsetenv not
 available

Simon Penel

2007-05-14

Replies:

Hello,

I am working on an unix SunOS machine ( sun4u sparc) and since the last
release of R -R version 2.5.0 (2007-04-23) - ,
I have got troubles during the execution of batch command.


For example with the instruction file multic.in
>cat multic.in
install.packages("multic","/bge/penel/R_install/R_2.5.0/lib/R/library",repos="http://cran.at.r-project.org")


When I use the BATCH command, I get an error :

>R_2.5.0/bin/R CMD BATCH multic.in

creates the multic.in.Rout file :

>cat multic.in.Rout
Error in Sys.unsetenv("R_BATCH") : 'Sys.unsetenv' is not available on
this system
Execution halted


Effectiveley, Sys.unsetenv is not available on unix
When running R :
> Sys.unsetenv("toto")
Error in Sys.unsetenv("toto") : 'Sys.unsetenv' is not available on this
system


Does that mean that it is not possible anymore to use R CMD BATCH on
unix OS ?
This is very recent, since it was working fine with the R-patched
version :R version 2.5.0 Under development (unstable) (2007-03-18 r40854)


Thanks for your help

Simon


--
Simon Penel
Laboratoire de Biometrie et Biologie Evolutive      
Bat 711 -  CNRS UMR 5558 -   Universite Lyon 1        
43 bd du 11 novembre 1918 69622 Villeurbanne Cedex    
Tel:  04 72 43 29 04    Fax: 04 72 43 13 88
http://pbil.univ-lyon1.fr/members/penel

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.