Marcus Eger
2001-Dec-10 10:22 UTC
[R] behaviour of Sys.getenv changed after upgrade from 1.3.0 to R1.3.1 debian
Hi, both environment variables exist:> system("echo $hostname")ernie> system("echo $HOSTNAME")ernie but Sys.getenv reports only one of them:> Sys.getenv("HOSTNAME")HOSTNAME ""> Sys.getenv("hostname")hostname "ernie" What has changed? M. Eger platform i386-pc-linux-gnu arch i386 os linux-gnu system i386, linux-gnu status major 1 minor 3.1 year 2001 month 08 day 31 language R -- +-------- ><> ------------------------------------------- | E-Mail: eger.m at gmx.de (NEW) | marcus.eger at physik.uni-marburg.de (OLD) | WWW: http://neuro.physik.uni-marburg.de/~eger (NEW) +-------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Marcus Eger
2001-Dec-11 08:07 UTC
[R] behaviour of Sys.getenv changed after upgrade from 1.3.0 to R1.3.1 debian
Sorry - - there seems to have been a change from debian 2.2 to 3.0 (unstable): HOSTNAME used to be an environment variable, but has changed to be a shell variable now.... Thanks for the hint. M. Eger> Are you sure they are both environment variables? The echo command > will echo either an environment variable or a shell variable. > > Try > > system("export") > > to see what is in the environment.-- +-------- ><> ------------------------------------------- | E-Mail: eger.m at gmx.de (NEW) | marcus.eger at physik.uni-marburg.de (OLD) | WWW: http://neuro.physik.uni-marburg.de/~eger (NEW) +-------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._