Ever since I learned about Rcmdr, I was annoyed that I had to type library(Rcmdr) into R everytime I wanted to start it. Ok, it really didn't annoy me that bad, but I wanted it to be easier for students to start Rcmdr if they were in a computer lab (I help set up the Math Lab here at my school).
Well, I figured how to create a shortcut that will start R AND Rcmdr! Here are the steps:
defpack = getOption("defaultPackages") mylibs = c("tcltk","car","lattice","MASS","Matrix") if(Sys.getenv("RCMDR") == "TRUE") mylibs = c(mylibs,"Rcmdr") options(defaultPackages = c(defpack,mylibs))
"C:\Program Files\R\R-2.10.1\bin\Rgui.exe" --sdi RCMDR=TRUENotice that the options are OUTSIDE of the quotation marks.