Re: [R] Script to start Rcmdr

2008-03-03 Thread Dirk Eddelbuettel
On Mon, Mar 03, 2008 at 10:13:53AM -0300, Ronaldo Reis Junior wrote: > Hi, > > anybody know any way to make a bash script to start Rcmdr directly widthout > need to open R and execute library(Rcmdr)? > > I try to make this using R CMD BATCH somethink, but dont find the way. $ r -lRcmdr -e'while

Re: [R] Script to start Rcmdr

2008-03-03 Thread Prof Brian Ripley
On Mon, 3 Mar 2008, Ronaldo Reis Junior wrote: > Hi, > > anybody know any way to make a bash script to start Rcmdr directly widthout > need to open R and execute library(Rcmdr)? > > I try to make this using R CMD BATCH somethink, but dont find the way. For some reason, Rcmdr requires an interacti

Re: [R] Script to start Rcmdr

2008-03-03 Thread John Fox
Dear Ronaldo, You should be able to put local({ old <- getOption("defaultPackages") options(defaultPackages = c(old, "Rcmdr")) }) in an .Rprofile file in a directory reserved for this purpose, and have your bash script start R from that directory (untested). See ?Startup for details on how R sta