Displaying 20 results from an estimated 875 matches for "rprofile".
Did you mean:
profile
2008 May 02
2
.Rprofile is being executed twice
Hi,
After updating to R 2.7, my .Rprofile executes twice on startup. I
confirmed this by putting in the following line:
print("starting .Rprofile...")
When I start R, I see:
[1] "starting .Rprofile..."
[1] "starting .Rprofile..."
This seems like the obverse of the following FAQ:
http://cran.r-project.org...
2006 Aug 30
10
.Rprofile under Windoze.
I am (for my sins) having to do some work using R under Windoze. I
wanted to set up a .Rprofile to control my set-up. The docs on
.Rprofile say that it can/should be placed in ``the user's home
directory''. ``An Introduction to R'' observes lucidly that this
concept needs to be clarified under Windoze.
Following the suggestions in An Introduction to R, I tried
putting a...
1997 Apr 22
1
R-alpha: Rprofiles
The x11() window can be a nuisance to have popping up at startup (esp.
on small screens) when you're not working with graphics. However,
currently you can't get rid of it without modifying the systemwide
Rprofile.
Current logic is:
Run $RHOME/library/Rprofile
if ./.Rprofile exists
run it
else if $HOME/.Rprofile exists
run that
endif
I think it should be
Run $RHOME/library/Rsetup
if ./.Rprofile exists
run it
else if $HOME/.Rprofile exists
run that
else if $RHOME/library/Rprofile exists
run that
end...
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]]
2005 Jan 31
2
Startup Files (RProfile) and R-Aqua
Hello,
I'm having some difficulty understanding the documentation relative to
the startup files with R-Aqua 2.0.1 for Mac OS X.
Specifically, I'm wondering: where does R search for the startup files
(my home directory at Users:<me>:?); how should they be named
(.RProfile will be treated by Mac OS X as a system file and be hidden,
so I'm wondering if it should just be RProfile)? I can't find this
platform-specific information in any of the documentation.
As a related issue, where would I store my home-grown functions? Would
RProfile be a good place to ke...
2016 Nov 18
0
Tell whether ./.Rprofile or ~/.Rprofile is being processed?
Hi.
Assume I have one ~/.Rprofile (in my home directory) and one
./.Rprofile (in my current working directory). In this case, the
latter will have higher priority and will be the script that R uses
during the startup process.
Is there a *generic* way to programmatically from within ./.Rprofile
and ~/.Rprofile to tell what their a...
2012 Feb 23
1
R devel [and R 2.14.1 patched]: R CMD build now sources ~/.Rprofile
I'd like to follow up on this one. It may be that I have
misunderstood something, but on both R devel (2012-02-22 r58452) and R
2.14.1 patched (2012-02-18 r58394) I can't seem to avoid loading
~/.Rprofile when I run 'R CMD <cmd>', e.g. R CMD build. For me, the
loading of ~/.Rprofile by 'R CMD' started a few weeks ago, and I
haven't seen it before. More details below. It seems incorrect that
for instance 'R CMD check' should load the users ~/.Rprofile file by
defa...
2015 Dec 05
2
R_PROFILE_USER
In my shell environment, I have set a path to R_PROFILE_USER. The
file, Rprofile.R, is a collection of small hacks.
I want to build rstudio-server from source. Best is to $ unset
R_PROFILE_USER before. Unfortunately, this has no effect on my system.
-----------------------------------------------
poisonivy at poppy ?? ~ % R
*** Successfully loaded .Rprofile ***
Welcome back...
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 or independently. Any ideas please
on what'...
2008 Jul 14
2
.First and .Rprofile won't run on startup
I'm trying to source a file automatically every time I start R. I tried
adding the following .First function in a file Rprofile.site in my
$R_HOME/etc/ directory (verified $R_HOME by Sys.getenv()) as well as in a
file .Rprofile in my $HOME directory and .Rprofile in the working directory:
.First <- function(){
source(file.path(Sys.getenv("HOME"), "R", "functions","standard.r"))...
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 Ho...
2015 Dec 05
1
R_PROFILE_USER
On Sat, Dec 5, 2015, 9:39 PM peter dalgaard <pdalgd at gmail.com> wrote:
> On 05 Dec 2015, at 18:07 , arnaud gaboury <arnaud.gaboury at gmail.com>
wrote:
>
> In my shell environment, I have set a path to R_PROFILE_USER. The
> file, Rprofile.R, is a collection of small hacks.
>
> I want to build rstudio-server from source. Best is to $ unset
> R_PROFILE_USER before. Unfortunately, this has no effect on my system.
>
> -----------------------------------------------
> poisonivy at poppy ?? ~ % R
>
> *** Successful...
2004 Aug 21
4
loadhistory() in .Rprofile ?
dear wizards: my .Rprofile has just one command for testing,
loadhistory("~/.Rhistory")
but this gives me an error on R startup:
Error: couldn't find function "loadhistory"
Invoking loadhistory() as the first interactive command works fine;
incidentally, I believe loadhistory() in the .Rprofile w...
1999 Nov 27
1
.Rprofile results in corruption of .RData? (PR#346)
It could be that the following may be due to something wrong that I managed
to do (I cannot think what...) but I submit this report in case it is something
that you want to know about (I have solved the problem by removing .Rprofile as
I describe below).
1. After compiling/installing R 0.90 (an uneventful process), it
worked perfectly the first time, and it read .RData written by the
previous version, but later it would not read .RData (written by
current version). I finally traced the problem to
~/.Rprofile which someho...
2023 Mar 21
2
Rprofile.site and automatic installation of missing packages
...ding 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.
>
>
>
> 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 d...
2012 Jul 17
2
Installing packages from RProfile.site file
...stom 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 launched over and over. I noticed that
a lock file for the package is created along with the package in the library
folder within R.
Here is the code I have added to the site file:
if(length(grep("customPackage", installed.pac...
2004 Jun 16
1
start-up problems
...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("Adieu, delete all ps.out.*.ps files\n")
system("rm -f ps.out.*.ps&quo...
2009 Jul 21
1
Customization options with .Renviron, R_LIBS, .Rprofile etc
...=R_HOME\\library and
R_LIBS_USER to my private library? Does this also mean that any package that
I add with the install.packages() function will then end up in the
private library?
3. If I want to start R with a certain set of
packages loaded on startup, I understand that I need to create a file
.Rprofile with the path R_HOME\\etc\\.Rprofile. Again, should it be
.Rprofile or Rprofile (or, is it Rprofile.site which I see is already
present in my R installation)? Is the following syntax OK for
specifying the environmental variable
R_DEFAULT_PACKAGES = {?base?, ?datasets?,?utils?,?ggplot2?,?lattice?}...
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 duration of the session -- they are
not written permanentl...
2003 Feb 06
2
.Rprofile, .Rfirst, and .Rdata
Hi all,
After a short hiatus away from R I have found that it's changed a bit.
I used to keep a definition of .First in .Rprofile that did a couple of
things on startup (load a couple of libraries). Now, I've discovered
that when I change the definition of .First in .Rprofile it doesn't
change anything when I start up, because .First is held over in .Rdata
from the last session. The manual states that now .Rdata i...