similar to: getOption() versus Sys.getenv

Displaying 20 results from an estimated 10000 matches similar to: "getOption() versus Sys.getenv"

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 >
2015 Jul 09
4
R CMD build failure
I have a local library 'dart' that imports "httr". It has routines that access central patient data such as birth date, so it is heavily used locally but of no interest to anyone else. The httr library (and 300 others) are in a shared directory, referenced by everyone in the biostatistics group via adding this location to the .libPaths in their default .Rprofile.
2011 Apr 30
1
Sys.getenv at startup is not working properly
Hello, when using Sys.getenv() during startup-phase (.First or .Rprofile) to get the env-variables COLUMNS as well as HOST I get empty strings. After the startup is done, when asking via Sys.getenv() by hand, COLUMNS is set (but HOST is not, even "hostname" on the shell gives me a correct answer). At the moment my problem is the missing COLUMNS value during start up, because I want
2006 May 04
3
Rgui, Startup, HOME, R_USER, ...
Hi, Main objective: Let Rgui find my ~/.Rprofile and ~/.Renviron files, where ~ is equal to getwd("~"). I have few comments/questions: (A) On my WinXP Pro installation, the system environment variable 'HOME' is not availble to R, e.g. Sys.getenv("HOME") is empty. I believe this is default case (correct me if I'm wrong). However, if I set the "Start
2016 Aug 01
2
R, OpenBLAS and OMP_NUM_THREEADS
What is the correct way to globally configure R to default to single (or at least, << NUM_CPUS) threaded operation? Using R 3.3.1 (both in debian unstable or using the CRAN repository for xenial) with OpenBLAS (0.2.18) defaults to using one thread per available CPU, which isn't ideal for machines more than a couple of CPUs. Setting the environment (OMP_NUM_THREADS or
2002 Oct 17
1
Startup on Windows 2000
I am having difficulty coming to grips with Appendix B.2 of the otherwise very useful "An Introduction to R" and the related help file for Startup. I am running RGui 1.6.0 on a Windows 2000 machine from the default installation. How the concepts discussed in B.2 and the Startup help file relate to what I see on my machine is something of a mystery. I quote from the Startup file:
2016 Aug 03
2
R, OpenBLAS and OMP_NUM_THREADS
On 02/08/16 03:10, Ei-ji Nakama wrote: > Hi, > > Create /etc/profile.d/openblas.sh. > Write the following during in this file. > OPENBLAS_NUM_THREADS = 1 > export OPENBLAS_NUM_THREADS > > OPENBLAS_NUM_THREADS environment variable does not affect the OMP_NUM_THREADS. > Thanks for the response. This works fine for R run from the command line (as does setting the same
2019 Mar 25
2
R 3.5.3 having trouble spawning a new process on my Windows 10 machine
Hi all, I am noticing some strange behaviour so I am bringing to this list. In the past when I have submitted bugs to bugzilla, I have come here first for confirmation/advice. Hopefully this is appropriate. Upgrading from R 3.5.2 to R 3.5.3 seems to have elicited some strange behaviour on my Windows machine. R seems to have trouble spawning a new process on my machine. You can noticing with all
2003 Dec 16
1
getOption("repositories")
Out of curiosity, what happened to this? With 1.8.1 it returns: > getOption("repositories") CRAN "http://cran.r-project.org/src/contrib" BIOC "http://www.bioconductor.org/src/contrib" With R-devel it returns: > getOption("repositories") NULL It appears to have been taken
2010 Mar 14
3
R and R commander
Hi, I am a student studying Biostatistics at University. We have been advised to install R and R commander. I managed to do this successfully, except I wasn't able to complete the final step - which would enable both R and R commander to launch when I open the R icon on my desktop. However, I haven't been able to save it and for this to work. The last instructions we were given are:
2003 Aug 11
2
Changing default browser in options()
I usually startup R from within several directories (usually where the programs or data of interest are). I like to use a small web browser called dillo to browse help files. However, by default R looks for mozilla, so I have to type every single R session: > options(browser='dillo') Is there anyway I can change this globally? thanks, J.
2016 Aug 04
1
R, OpenBLAS and OMP_NUM_THREADS
Hi, I was be half asleep in the heat ... 2016-08-04 0:04 GMT+09:00 Dirk Eddelbuettel <edd at debian.org>: > > On 3 August 2016 at 16:45, Gordon Ball wrote: > | On 02/08/16 03:10, Ei-ji Nakama wrote: > | > Hi, > | > > | > Create /etc/profile.d/openblas.sh. > | > Write the following during in this file. > | > OPENBLAS_NUM_THREADS = 1 > | > export
2008 Apr 13
1
.Rprofile, date tagging history, loading packages
Dear R-Helpers, I'm fiddling with my .Rprofile in Windows XP & R 2.7.0 Beta. I prefer to manually save my workspace but automatically save my command history via the .Rprofile. That is working fine once I found that "utils::" was required before the loadhistory & savehistory functions. What I would like to do is add a separator line with a date between the histories of each
2010 Jul 01
1
How best to set library search path so user libraries come first
I want my local libraries to have priority over the system installed ones, which, as far as I can make out from help(".libPaths"), means they have to come first in that list (it doesn't actually_say_ so, but that seems to be the idea). We have R_LIBS_USER which looks made for specifying where I keep my own libraries. Unfortunately it comes last in .libPaths() [which appears to
2008 Jul 30
1
setting editor environment variable EDITOR either when configuring R for installation or in .Rprofile
I'm running R on Linux and use emacs as my editor. When doing "edit(vignette(foo.vignette))" I would like to invoke emacs rather than the default vi. I am able to manually set this by editing $R_HOME/etc/Renviron but would like to avoid doing this with each install. I assume this can be accomplished with a flag to .configure or in .Rprofile but I can't find the syntax in R-admin.
2002 Jul 12
1
.Rprofile on MacOSX
I'm new to R, so apologies if the answer to my question is very obvious to everyone else! I use the carbon version of R (1.5.1), not the Darwin version. After a bit of a battle, I'm getting to grips with using R, and really getting to like it, but I'm still having trouble customising startup the way I'd like it. Reading ?Startup, I see that I can specify some commands to be run
2011 Mar 04
1
Environment variable PATH in Windows
Colleagues, I am trying to understand how R (2.12.1) obtains the PATH environment variable in Windows (7 or Vista). Startup {base} directs one to: "R_ENVIRON" -- which equals "" in my systems R_HOME/etc/Renviron.site -- which does not exist Next, it directs to: R_HOME/etc/Rprofile.site -- which also does not exist (the expected behavior in a "factory-fresh"
2019 Sep 08
6
Error: package or namespace load failed for ‘utils
Hi, When starting an embedded R I encounter the following issue under certain conditions: ``` Error: package or namespace load failed for ?utils? in if (.identC(class1, class2) || .identC(class2, "ANY")) TRUE else {: missing value where TRUE/FALSE needed ``` (more such errors for grDevices, graphics, and stats) And in the end: ``` Warning messages: 1: package ?utils? in
2006 Nov 08
2
Can I set the proxy server and authentification from within R?
Hi, I am using Tinn-R and somehow I cannot point it to start a R shortcut with http_proxy settings including authentification. It always shows the .exe. Is there any way to set the proxy from within R or any other ideas how to do it? I am using R 2.4 for Windows. Thanks a million, Werner
2008 Oct 15
1
Confused with default device setup
When invoking dev.new() on my Mac OS X 10.4.11, I get an X11 window instead of quartz which I feel more desirable. So I'd like to set the default device to quartz. However I'm confused because of the following: > Sys.getenv("R_DEFAULT_DEVICE") R_DEFAULT_DEVICE "quartz" > getOption("device") [1] "X11" What's going on? Also is