[R] how to install R really *locally*?

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Apr 27 10:45:53 CEST 2009


Set you system up in a way that its R is started with some of the 
options reported by `R --help':

   --no-environ          Don't read the site and user environment files
   --no-site-file        Don't read the site-wide Rprofile
   --no-init-file        Don't read the .Rprofile or ~/.Rprofile files
   --no-restore-data     Don't restore previously saved objects
   --no-restore-history  Don't restore the R history file
   --no-restore          Don't restore anything
   --vanilla             Combine --no-save, --no-restore, --no-site-file,
                           --no-init-file and --no-environ


Uwe Ligges


Oliver Kullmann wrote:
> Hello,
> 
> my first attempt at installing version 2.9.0 failed
> because I got an error
> "Error in library(pspline) : there is no package called 'pspline'"
> 
> Later I realised that this comes from HOME/.RProfil, and removing
> that files "solves" that problem.
> 
> However, I'm actually glad that this error happened, since it shows
> a deeper problem (which is actually not solved yet):
> My context is that I re-distribute R as a part of an open-source
> library I develop, and this library (actually I call it a "research
> environment") installs many things (like R and Maxima, gcc, git, ...),
> and this all purely locally --- it shouldn't interfere with anything
> the user has installed.
> 
> So my question is how can I tell R as installation time that it should
> not look at any configuration files or other files whatsoever (so it should
> for example ignore HOME/.RProfil)?
> 
> The installation instructions mention the variable "rhome", but I don't
> understand what type of "home" is meant here. What I could need here
> would be a redefinition of the user home-directory (to a local directory
> in my installation), but I guess that is not meant with rhome.
> 
> Hope somebody can help here.
> 
> Oliver
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list