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

Thomas Lumley tlumley@u.washington.edu
Fri, 8 Mar 2002 13:47:51 -0800 (PST)


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._