简体   繁体   中英

How do I make R run R Commander every time it starts up?

我曾经将它设置为每次打开R应用程序时R Commander插件都会自动启动,但是我已经升级了R,不记得我是怎么做到的。

Here is Scott Hyde's instructions for creating a shortcut to start R commander every time you start R.

  1. Open up the C:\\Program Files\\R\\R-2.10.1\\etc (or similarly named version directory).
  2. Edit the file Rprofile.site and add the following lines. The mylibs variable is a list of packages that you want starting up each time you run Rcmdr. Both lattice and MASS are depencies of Rcmdr and need to be loaded. If you load them this way, they are loaded SILENTLY! defpack = getOption("defaultPackages") mylibs = c("tcltk","car","lattice","MASS","Matrix") if(Sys.getenv("RCMDR") == "TRUE") mylibs = c(mylibs,"Rcmdr") options(defaultPackages = c(defpack,mylibs))

  3. Next, copy the shortcut that is used to run R onto the Desktop. Right click on the file, and select properties Add the following to the end of the "Target:" "C:\\Program Files\\R\\R-2.10.1\\bin\\Rgui.exe" --sdi RCMDR=TRUE

Notice that the options are OUTSIDE of the quotation marks. Change the name of the shortcut you just made to "Rcmdr" Double click on it, and both R and Rcmdr start!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM