search for: r_profile

Displaying 20 results from an estimated 43 matches for "r_profile".

2005 Dec 13
1
R_PROFILE on Windows
Dear R-devel, There seems to be a bug in the Startup section, regarding the R_PROFILE environment variable in Windows. If not a bug in the Startup itself, perhaps a bug in the documentation. According to ?Startup: Then R searches for the site-wide startup profile unless the command line option '--no-site-file' was given. The name of this file...
2004 Aug 08
1
Use of R_PROFILE.R / install.R
According to R-exts: The second purpose for @file{install.R} is to hold code that needs to be executed each time the package is attached, after the image is loaded. Few packages have a need for such code so @file{install.R} is normally an empty file. The optional file @file{R_PROFILE.R} is executed before the code in the @file{R} subdirectory and should be used to set up an environment needed only to evaluate the code (which is run with the @option{--vanilla} command-line flag). Very few packages will need such code. Indeed, both @file{install.R} and @file{R_PROFILE.R}...
2009 Mar 19
2
How to set R_PROFILE conditional on batch or interactive mode
I am running R 2.8.1 on SUSE Linux. I would like to be able to set R_PROFILE to two different possibilities. One when R is called by R CMD BATCH and another any other time. Is this possible? Mark Lyman, Statistician Engineering Systems & Integration, ATK
2004 Jun 16
1
start-up problems
Hi, After some reading and experimentation I found that I cannot solve this problem: 1. I am starting R and check: > system("pwd") /home/woodstock/hoffmacw/R/test > system("echo $HOME") /home/woodstock/hoffmacw > system("echo $R_PROFILE") /home/woodstock/hoffmacw/R > system("ls $R_PROFILE/.Rprofile") /home/woodstock/hoffmacw/R/.Rprofile > system("cat $R_PROFILE/.Rprofile") # gives system("pwd") (editedOn <- "2004-06-15, 11:10") .Last <- function() { cat("Adi...
2006 Feb 01
1
The install.R and R_PROFILE.R files
R-exts says Both install.R and R_PROFILE.R should be viewed as experimental; the mechanism to execute code before attaching or installing the package may change in the near future. With the other facilities available as from R 2.0.0 they should be removed if possible. Every usage of these on CRAN is unnecessary. If you want to s...
2008 Jan 16
3
Rprofile.site not executed?
...ncluded the following code in that file: .First <- function(){ cat("\nWelcome at", date(), "\n") flush.console() } When I start R the message above is not displayed. I am running R 2.6.1 (rgui.exe) under Vista Home Premium. The Rprofile.site is in the etc folder and the R_PROFILE variable has the value "". I looked in the help (?Startup) but could not figure out what is wrong. Any suggestions? Thanks. FS
2003 Oct 01
1
installing DBI_0.1-6.tar.gz
Dear, I tried to install the DBI package in R-1.7.1, but this gave the following error: /volume1/scratch/jallemee/R/lib/R/bin/INSTALL: line 1: 1856 Done ( echo "options(save.image.defaults=${save_image_defaults})"; if test -s R_PROFILE.R; then cat R_PROFILE.R; fi; echo "invisible(.libPaths(c(\"${lib}\", .libPaths())))"; cat "${R_PACKAGE_DIR}/R/${pkg}" ) 1857 Segmentation fault | ${R_EXE} --slave --save ${save_args} ERROR: execution of pac...
2007 Sep 03
1
Snow on Windows Cluster
Hello, the package snow is not working on a windows cluster with MPICH2 and Rmpi. There is an error in makeCluster: launch failed: CreateProcess(/usr/bin/env "RPROG="C:\Programme\R\R-2.5.1\bin\R" "OUT=/dev/null" "R_LIBS=" C:/Programme/R/R-2.5.1/library/snow/RMPInode.sh) on 'cl1' failed, error 3 - Das System kann den angegbenen Pfad nicht finden. I
2010 Mar 05
2
[PATCH] R ignores PATH_MAX and fails in long directories (PR#14228)
...ted below : Index: src/unix/sys-unix.c =================================================================== --- src/unix/sys-unix.c (revision 51208) +++ src/unix/sys-unix.c (working copy) @@ -61,7 +61,7 @@ attribute_hidden FILE *R_OpenInitFile(void) { - char buf[256], *home, *p = getenv("R_PROFILE_USER"); + char buf[PATH_MAX], *home, *p = getenv("R_PROFILE_USER"); FILE *fp; fp = NULL; @@ -72,7 +72,7 @@ return fp; if((home = getenv("HOME")) == NULL) return NULL; - sprintf(buf, "%s/.Rprofile", home); +...
2008 Oct 02
4
Load a program at the front end
I want to run a R program, prog.R, interactively. My question is, is there a way I can start prog.R on the shell terminal when invoking R, instead of using source() inside R? TIA, Gang
2017 Apr 06
3
failure of make check-all
...DE_DIR" "R_LIBS" < [55] "R_LIBS_SITE" "R_LIBS_USER" < [57] "R_OSTYPE" "R_PAPERSIZE" < [59] "R_PAPERSIZE_USER" "R_PDFVIEWER" < [61] "R_PLATFORM" "R_PRINTCMD" < [63] "R_PROFILE" "R_PROFILE_USER" < [65] "R_RD4PDF" "R_SESSION_TMPDIR" < [67] "R_SHARE_DIR" "R_SYSTEM_ABI" < [69] "R_TEXI2DVICMD" "R_UNZIPCMD" < [71] "R_VERSION" "R_ZIPCMD" < [73] &quot...
2017 Apr 06
0
failure of make check-all
...uot;R_LIBS" > < [55] "R_LIBS_SITE" "R_LIBS_USER" > < [57] "R_OSTYPE" "R_PAPERSIZE" > < [59] "R_PAPERSIZE_USER" "R_PDFVIEWER" > < [61] "R_PLATFORM" "R_PRINTCMD" > < [63] "R_PROFILE" "R_PROFILE_USER" > < [65] "R_RD4PDF" "R_SESSION_TMPDIR" > < [67] "R_SHARE_DIR" "R_SYSTEM_ABI" > < [69] "R_TEXI2DVICMD" "R_UNZIPCMD" > < [71] "R_VERSION" "R_ZIPCMD" > &...
2001 Nov 23
0
eval.c: possible issue with profiling for Windows
I see a possible problem with the "wait" parameter for the profiler thread: static void R_InitProfiling(char * filename, int append, double dinterval) { int wait; Here is the (automatic) variable. HANDLE Proc = GetCurrentProcess(); .......... wait = interval/1000; if(!(ProfileEvent = CreateEvent(NULL, FALSE, FALSE, NULL)) || (_beginthread(ProfileThread, 0,
2004 Apr 12
0
Windows startup question
I would like to be able to double click on an R source file and by that start R and have the file sourced in R. I am using WinXP Pro. So I created an association for file type R and tye following Run action: "C:\Program Files\R\rw1090beta\bin\Rgui.exe" R_PROFILE=%1 I have an R file with the following lines at the beginning. library(vcd) votes<-array(0,10*7*9*2) dim(votes)<-c(10,7,9,2) Double clicking this file (in Windows Explorer) starts R and then produces the following output. Attaching package 'vcd': The following object(s...
2014 Aug 11
1
Renviron.site and Rprofile.site in Fedora
On Debian/Ubuntu, system wide environment variables and options are set in respectively /etc/R/Renviron.site and /etc/R/Rprofile.site. These files are automatically created when r-base is installed, and do not get overwritten during an upgrade. On Fedora, there is no /etc/R directory. What is the recommended place to define system wide environment variables and options on a Fedora system?
1999 Nov 04
1
R_OpenSiteFile: Do not use a null ptr as filename in fopen (PR#312)
I get crashes when I call R without any arguments and having no environment variables R_PROFILE and RPROFILE. The reason is, that in unix/sys-common.c in R_OpenSiteFile() fopen is called with a null ptr as filename (because this is the outcome of getenv()). Although most compilers seem to interpret this as "file not found", this is an undefined behavior concerning to all C stand...
2003 Jan 13
1
Rprofile.site assignments occur in base package (PR#2448)
Not sure whether this is a feature or bug -- but it does not appear to be documented. R1.6.1 on Windows NT 4.00.1381 Objects assigned in the Rprofile.site file (e.g. foo<-'something') are put into package:base not .GlobalEnv on startup. Objects assigned in the .Rprofile file are put into .GlobalEnv. This doesn't seem consistent to me. The objects exist in base only for the
2012 Apr 12
2
Schedule R script using cron
I am trying to schedule my R script using cron, but it is not working. It seems R can not find packages in cron. Anyone can help me? Thanks. The following is my bash script # source my porfile . /home/winie/.profile # script.R will load packages R CMD BATCH /home/script.R -- View this message in context: http://r.789695.n4.nabble.com/Schedule-R-script-using-cron-tp4550729p4550729.html Sent
2003 Jul 28
3
Recommended way to change defaultPackages under Windows
What is the recommended way to change the default set of packages that are loaded at startup by R for Windows? I am writing vignettes for the Devore6 package which my introductory engineering statistics students will use and I would like to describe how the R environment can be changed so that this package is loaded by default. I understand from the R for Windows FAQ that one way would be to
2004 Aug 12
3
The Depends: field of a package is now used by library()
...dencies if there are unnecessary entries, and load time will be slowed (although with lazy-loading that is a much smaller penalty than it used to be). This change should enable the installation procedure to be simplified for packages which save images -- you can probably omit both install.R and R_PROFILE.R and use fields in DESCRIPTION instead -- see `Writing R Extensions'. More details of recommended changes will appear on the developer site nearer release time. -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ U...