similar to: Problems with environmental variables set with Sys.putenv

Displaying 20 results from an estimated 10000 matches similar to: "Problems with environmental variables set with Sys.putenv"

2001 Nov 30
0
Problems with environmental variables set with Sys.putenv
Environment variables set with Sys.putenv() "disappear" spontaneously (and somewhat randomly) when I load large datasets. This was reported in R-help by Dave Kane on June 4, 2001; I have not seen any further discussion. I'm not sure if I can report it as a "bug", since it is not entirely reproducible. Could someone try this and see if you have trouble too? The following
2002 Mar 08
2
Sys.putenv environment variables disappear (PR#1371)
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
2001 Jul 12
1
Sys.getenv
I am running R-1.3.0 on Solaris 8: Under Solaris I do setenv dendro_us hoffmann echo $dendro_us gives back: hoffmann which is correct. When in R I do: Sys.getenv("dendro_us") I get dendro_us "" which is NOT correct: Inverse effect (taken from help of Sys.getenv) Under R: print(Sys.putenv("R_TEST"="testit", ABC=123)) [1] TRUE TRUE
2002 May 14
0
FW: Summary of Suggestions for poor man's parallel processing
It turns out that my web host doesn't allow direct links. Try going to http://www.warnes.net/downloads or getting it from the sourceforge snippet library https://sourceforge.net/snippet/detail.php?type=snippet&id=101149. -Greg > -----Original Message----- > From: Warnes, Gregory R [mailto:gregory_r_warnes at groton.pfizer.com] > Sent: Monday, May 13, 2002 10:15 AM > To:
2009 Feb 02
3
Environmental variables
I use a Mac (10.4.11 Mac Os X). In my .tcshrc I define an environmental variable MY. Is it possible to find out its value from inside R? When one loads R for Mac OS X Cocoa GUI written by: Simon Urbanek Stefano M. Iacus are files like .tcshrc read by R? Can I make the value of this environmental variable available to R? Sys.getenv() produces a lot of output, with the values of many
2015 May 11
0
Windows environmental variables
Hi, I recently had some difficulty getting an embedded R session running on Windows, due to the way that R Sys.getenv works, which I would consider a bug. Even if you do not agree, then you may still want to document it for future users who might be bitten. As outlined in R-exts (?8.2.2): http://cran.r-project.org/doc/manuals/r-release/R-exts.html#Calling-R_002edll-directly R_HOME/bin needs to
2002 May 20
1
(PR#1577) is.na<- coerces character vectors to be factors
The inconsistency is that you use $<- to set the column, then [[<- to change it. Had you tried to set the column by x[[1]] <- as.character(x[[1]]) you would have seen the problem immediately (it does not work as you would have intended). If you want to be sure to turn off conversion to factor, you need to set the column to class "AsIs". My belief is that will behave
2000 Mar 25
0
replacement putenv()
Can we get this as a replacement to the current putenv()? It's out of the OpenBSD source tree and is a complete replacement instead of a wrapper around setenv(). Thanks. -------------- next part -------------- #ifndef HAVE_SETENV /* ** Borrowed from OpenBSD 2.6. Some platforms don't even support putenv() ** So therefor we need a real setenv(). */ int setenv(name, value,
2006 Feb 23
1
tcl/tk - Install problem using MacOS X / X11
Hi Sorry, my first post was in German. I tried to get Rcmdr running under MacOS X 10.4.5. While RGui pretends that tcltk is running, starting Rcmdr freezes R completely. Instead, JGR which gave me the following results: > library(tcltk) Loading Tcl/Tk interface ... Error in fun(...) : no display name and no $DISPLAY environment variable Error: .onLoad failed in 'loadNamespace' for
2002 Jul 02
5
R windows FAQ (PR#1733)
Full_Name: Kevin Wright Version: 1.5.1 OS: Windows 95 Submission from: (NULL) (170.54.59.160) In the R windows FAQ, item 3.6 (Package TclTk does not work) currently has this line: Sys.putenv("TCL_LIBRARY"="c:/Program Files/Tcl/lib/tcl8.3") I find that if I execute the following two lines after starting R, I can then do library(tcltk) and demo(tkdensity) as usual. I do
2017 Aug 25
0
getOption() versus Sys.getenv
On 25/08/2017 1:19 PM, Sam Albers wrote: > Hi there, > > I am trying to distinguish between getOption() and Sys.getenv(). My > understanding is that these are both used to set values for variables. > getOption is set something like this: option("var" = "A"). This can be > placed in an .Rprofile or at the top of script. They are called like this >
2013 May 23
0
[LLVMdev] Usage of getenv() inside LLVM and thread safety
Right. glibc's amusing stance is that you setenv/putenv are not thread safe, but getenv is. I assume Ruby exposes setenv and therefore simply not calling setenv isn't an option. Would it solve your problems if all getenv() calls happened at cl::ParseCommandLineOptions() time? On Thu, May 23, 2013 at 9:49 AM, Dirkjan Bussink <d.bussink at gmail.com>wrote: > Hello, > >
2017 Aug 25
2
getOption() versus Sys.getenv
Hi there, I am trying to distinguish between getOption() and Sys.getenv(). My understanding is that these are both used to set values for variables. getOption is set something like this: option("var" = "A"). This can be placed in an .Rprofile or at the top of script. They are called like this getOption("var"). Environmental variables are set in the .Renviron file
2014 Jun 03
0
setting environmental variable inside R function to call C function
wrapper <- function(){ Sys.setenv(TMP="A") print(Sys.getenv("TMP")) .C("c_fun") } As the example above, I hope to set an env var $TMP inside the R function "wrapper", which affects the functionality of the C function call "c_fun". Also the print line shows that $TMP is set to be "A", but the function call of "c_fun"
2010 Sep 07
2
Environmental Variables
Hi Everybody, I been looking through google for better part of the day but I haven''t been able to find an answer to my problem. I need an environmental variable to be present in puppet, so that yum works correctly. However after reboot puppet doesn''t read /etc/profile and starts without this profile. If I go into server and do services puppet restart than everything works fine,
2003 Feb 20
1
proxy setting RedHat Linux
Hi, I was trying to update packages with my R 1.6 under RedHat 8.0 system. When entering this command, > update.packages() It simply says, trying URL `http://cran.r-project.org/src/contrib/PACKAGES' But nothing happens. Is this a problem with my proxy setting since I am working behind a firewall? It seems so: > Sys.getenv("http_proxy") http_proxy
2004 Jun 26
1
Problem setting environment variable in R/zzz.R
I am trying to get the Rmetrics.org component package fBasics by Diethelm Wuertz into a Debian package. Thanks to a lot of work by Diethelm, it is _almost_ there. It fails 'R CMD check' for me if I do not have the TZ environment variable set [1], yet works fine as long as I set TZ. I figured I could patch this in R/zzz.R and do ## set a timezone if none found in environment
1999 Mar 25
0
Using env variables to config Samba (was Re: ideas for multiple group macro expansion)
On Thu, Mar 25, 1999 at 09:16:32AM -0600, Andy Bakun wrote: > Sorry that this is an older message, but I had a few questions. NP. > Nicolas Williams wrote: > > > On Thu, Mar 18, 1999 at 07:36:52AM +1100, Andy Bakun wrote: > > > Every day samba gets closer to having more complete NT acl and group > > > support, and it would be nice to be able to do things on the
2006 Oct 30
3
Problem setting TMPDIR on the fly
Hi folks, I'm having a spot of bother with tempdir(). If I set the environment variable TMPDIR in my shell prior to invoking R it works as expected: > Sys.getenv("TMPDIR") TMPDIR "/eurotempest/tmp/R" > tempdir() [1] "/eurotempest/tmp/R/Rtmp0xY4XD" However if I don't set it prior to entry, but attempt to set it from within
2005 Oct 19
1
Unix proxy and firewall problems
I was trying to install R on a unix server. Because of a firewall i can't install biocLite for working with Bioconductor. With windows it wasn't a problem. I used the option '--internet2' to bypass the firewall. I don't have any idea, how to do it with unix. I tried to set my proxy >Sys.putenv("http_proxy"="http...:8080")