From tlumley@u.washington.edu  Fri Mar  8 21:47:51 2002
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Fri, 8 Mar 2002 13:47:51 -0800 (PST)
Subject: [Rd] Sys.putenv environment variables disappear (PR#1371)
In-Reply-To: <200203082136.WAA01499@pubhealth.ku.dk>
Message-ID: <Pine.A41.4.44.0203081344100.69958-100000@homer34.u.washington.edu>

On Fri, 8 Mar 2002 a215020@onyx.fmr.com wrote:

> Environment variables set with Sys.putenv() disappear (i.e. become "")
> after a while, especially after heavy-duty I/O.  Example:
>
>   R> x <- matrix(1., 3000, 3000)
>   R> save(x, file="myx.RData")
>   R> Sys.putenv(HOME="/tmp")
>   R> while (Sys.getenv("HOME") != "") {cat("ok\n"); load("myx.RData")}
>
> The loop prints "ok" twice, then exits because HOME has been destroyed.
>
> I'm running R-1.4.1 (I also saw this in earlier versions), under
> Solaris 2.6.  Dave Kane reported this problem to R-help on 6/4/01, and
> I reported it on 11/30/01, but nobody else has confirmed (or denied)
> seeing it (except Kjetil Halvorsen did not see it on Windows).
>

It's happening on Linux with the current source tree.

	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Sys.putenv environment variables disappear (PR#1371)
Thomas Lumley