Skip to content

Autoloading R Commander

5 messages · Stephen P. Molnar, Uwe Ligges, Brian Ripley +1 more

#
Stephen P. Molnar, Ph.D. wrote:

            
See ?Startup

Uwe Ligges
#
On Sat, 19 Nov 2005, Stephen P. Molnar, Ph.D. wrote:

            
Read ?Startup.  My first idea would be to make use of a ~/.Rprofile file.

`Autoloading' is a technical term in R (see ?autoload), which I presume is 
not what you meant.  My guess is that you want R Commander to be started 
when you start R.
#
Dear Stephen,

I believe that this question has been asked before, though possibly
privately rather than on the r-help list. A solution (kindly provided, as I
recall, by Brian Ripley) is to put the following in an appropriate start-up
file. For example, if you *always* want to start the Rcmdr when R starts,
this could go in Rprofile.site in R's etc subdirectory. For more detail, see
?Startup, as others have suggested.

local({
  old <- getOption("defaultPackages")
  options(defaultPackages = c(old, "Rcmdr"))
})

I hope this helps,
 John

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
--------------------------------
#
Dear Stephen,

As a brief addendum, this information (and other information) is in the
Rcmdr installation notes, at
http://socserv.socsci.mcmaster.ca/jfox/Misc/Rcmdr/installation-notes.html.

Sorry I forgot that when I posted my original answer.

John

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
--------------------------------