similar to: Problem setting options(error=recover) in my Rprofile.site

Displaying 20 results from an estimated 50000 matches similar to: "Problem setting options(error=recover) in my Rprofile.site"

2007 Mar 28
1
options(error=recover) in .Rprofile
Hi, I'd like to try using "options(error=recover) in my ~/.Rprofile, but it appears that the function "recover" is not defined during R startup when the .Rprofile is processed. "recover" is defined after I get an R prompt, however. Can anyone shed light on why this is, and whether a work-around is possible? I've tested this on a variety of systems
2009 May 30
2
'options=utils::recover' not working in .Rprofile or within R
For years I have been using options(error = recover) either in .Rprofile or from within R for debugging purposes. The functionality of this appears to have changed and I can't recover it (no pun intended) using the ?options help page. How can I get the old functionality back, particularly from within .Rprofile? A specific line entry would be appreciated. An example, the help page, and
2019 Mar 10
2
Exit status of Rscript when setting options(error=utils::recover)
Hello, I've noticed that Rscript didn't exit with error code if I set options error = utils::recover in .Rprofile . for example Rscript -e "asdf" Error: object 'asdf' not found No suitable frames for recover() echo $? 0 if didn't set options in .Rprofile, Rscript exit with error code 1, is this expected behavior ?
2019 Mar 18
1
Exit status of Rscript when setting options(error=utils::recover)
Thanks for explanation, so recover in non-interactive session exit with 0 is expected behavior . dump.frames said that it always write to file (workspace , or specified file). I have a R script run as a auto build stage, so I want to print detail backtrace to console (with source file, line number) for quickly debug, without saving any dump. I tried options(error=
2019 Mar 15
0
Exit status of Rscript when setting options(error=utils::recover)
Please refer to the documentation (?stop, ?recover, ?dump.frames). In non-interactive use, recover() works as dump.frames(). dump.frames() is documented not to quit R, and the examples show how to quit the R session with a given status automatically after dump.frames(). So in line with the documentation, R continues after the error, it reaches the end of the input, and returns 0. When you
2013 Oct 03
1
When to use RProfile.site or .Rprofile
I would appreciate some advice on what the preferred contents of RProfile.site vs. .Rprofile should be. A .First() function can reside in either one, but is it preferred to place it in .Rprofile? I currently use .First() in .Rprofile files placed in separate directories used for different RStudio projects. Thank you [[alternative HTML version deleted]]
2012 Mar 01
1
Execution of Rprofile.site
Hi everyone. I have recently installed R 2.14.1 on my 64-bit Windows 7 laptop. I am attempting to include some favourite functions in the Rprofile.site file to run at R start-up as I did with my previous 32-bit XP machine. I have edited the Rprofile.site file in "C:\Program Files\R\R-2.14.1\etc\" but the added code doesn't seem to be executed when I run R, whether through Tinn-R
2009 Mar 30
1
Can I read a file into my workspace from Rprofile.site?
I am running R version 2.8.1 on Windows XP OS. When I launch R, I would like to automatically read a file containing my database connections, user ids, and passwords into my workspace. I tried including this in my Rprofile.site file: ... local({ old <- getOption("defaultPackages") options(defaultPackages = c(old, "Rcmdr","RODBC", "utils")) }) .First
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 13
1
Rprofile.site?
Hello: I've been using "Rprofile.site" for several years to set the repos environment variable as follows: options(repos=c(CRAN='http://cran.cnr.berkeley.edu', CRANextra='http://www.stats.ox.ac.uk/pub/RWin') ) However, R 2.15.0 is not recognizing this. Instead, I get the following: options('repos') $repos
2023 Mar 21
1
Rprofile.site and automatic installation of missing packages
Dear all. I am trying to install missing (not installed) packages during startup of R through code in Rprofile.site but I miserably failed and I am not sure what I am doing wrong. R is installed to C:Program files but it is not writable for the users, therefore I cannot change Rprofile.site located in root etc directory. I however can put Rprofile.site in users home directory (Documents)
2012 Jul 17
2
Installing packages from RProfile.site file
I am trying to install custom packages upon starting R. A lot of the code that is written by us right now is available for editing to the users. To try and protect the code, I am packaging the production level code and having the users install it on their machine during start up. However, when I try to install packages in RProfile.site file, the program goes into a loop and R is constantly
2012 May 04
1
Rprofile.site under Windows 7?
Hello All: I'm still unable to get Rprofile.site to set, e.g., options(max.print=222), as I did with previous versions of R. I just found similar questions posed by Trevor Miles and Ross Bowden with replies by Uwe Ligges and Duncan Murdoch. In addition to the things I tried documented below, I also copied Rprofile.site into "R_HOME/etc/i386" and
2008 Jan 16
3
Rprofile.site not executed?
It seems that my Rprofile.site file is not executed when I start R. To test this I included 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
2013 Jan 13
1
Loading circular package from Rprofile.site
Hi, I installed "circular" package and I wanted to load it automatically when R starts up, so I added the following lines in file Rprofile.site, .First <- function() library(circular) When R starts up, it gives me the following error: ---------- Loading required package: boot Loading required package: graphics Loading required package: stats Error : .onAttach failed in
2009 Aug 21
1
a --no-save option for Rprofile.site?
I need to set up Rcmdr for use in a testing center that uses Windows. Since it is in a testing center, we don't want to have data saved, and want it cleared (or never saved) each time R or Rcmdr is run. The method I used to get Rcmdr to run automatically is to add the lines: ------------------------------------------------ defpack = getOption("defaultPackages") mylibs =
2023 Mar 21
2
Rprofile.site and automatic installation of missing packages
?Startup says: "Note that when the site and user profile files are sourced only the base package is loaded, so objects in other packages need to be referred to by e.g. utils::dump.frames or after explicitly loading the package concerned." So you need utils::installed.packages and utils::install.packages . Duncan Murdoch On 21/03/2023 8:04 a.m., PIKAL Petr wrote: > Dear all.
2011 Apr 21
1
Package check issue: Rprofile.site is not used
Dear R-users, I am having some issues with a package I am working on (using R 2.12.1 in a Linux environment) and would like to have your opinions/advises. My package - let's call it mypackage for the purpose of this email - passes all checks of R CMD check, except for the following failure message: Error : .onLoad failed in loadNamespace() for 'mypackage', details: call:
2009 Jul 21
1
Customization options with .Renviron, R_LIBS, .Rprofile etc
Hi, I am interested in customizing the installation of R. I have gone through the ?R Installation and Administration? manual. But some of the stuff is not clear to me and I would like to get clarifications on the following points (for a Windows installation with R_HOME=C:\\R\\R-2.9.1 ) : 1. I understand that I need to create a file, .Renviron with the following path : R_HOME\\etc\\.Renviron where
2011 Jan 07
1
rprofile.site
Hi all, i just installed R 2.12.1 and Tinn-R 2.3.7.1. My OS is Windows 7 32bit. Here is my question: Do I have to execute the rprofile.site manually every time I start a R/Tinn-R session? Because it seems that way. Here is the error code I receive after sending "selection(echo=TRUE): source(.trPaths[5], echo=TRUE, max.deparse.length=150) It doesn't do that after I configure