[R] Script to start Rcmdr

John Fox jfox at mcmaster.ca
Mon Mar 3 14:39:12 CET 2008


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 starts.

I hope this helps,
 John

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

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Ronaldo Reis Junior
> Sent: March-03-08 8:14 AM
> To: R-Help
> Subject: [R] Script to start Rcmdr
> 
> 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.
> 
> Thanks
> Ronaldo
> --
> > Prof. Ronaldo Reis Júnior
> |  .''`. UNIMONTES/Depto. Biologia Geral/Lab. de Biologia Computacional
> | : :'  : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia
> | `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
> |   `- Fone: (38) 3229-8187 | ronaldo.reis at unimontes.br |
> chrysopa at gmail.com
> | http://www.ppgcb.unimontes.br/ | ICQ#: 5692561 | LinuxUser#: 205366
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list