search for: defpack

Displaying 2 results from an estimated 2 matches for "defpack".

2009 Jul 15
0
Starting RCmdr from the Commandline (and a shortcut) in Windows
...\Program Files\R\R-2.9.1\bin\Rgui.exe" --sdi RCMDR=TRUE I added the options --sdi (I like this interface the best) and created the RCMDR=TRUE environmental variable. Next, I edited the Rprofile.site file in the etc directory of the R installation and added the following lines to the bottom: defpack = getOption("defaultPackages") mylibs = c("lattice","MASS","Matrix") if(Sys.getenv("RCMDR") == TRUE) mylibs = c(mylibs,"Rcmdr") options(defaultPackages = c(defpack,mylibs)) Note that mylibs is the list of libraries that I wanted autoloade...
2009 Aug 21
1
a --no-save option for Rprofile.site?
...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 = c("lattice","MASS","Matrix","m343linalg") if(Sys.getenv("RCMDR") == "TRUE") mylibs = c(mylibs,"Rcmdr") options(defaultPackages = c(defpack,mylibs)) ------------------------- to th...