Re: [R] Script to start Rcmdr

From: John Fox <jfox_at_mcmaster.ca>
Date: Mon, 03 Mar 2008 08:39:12 -0500

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.



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. Received on Mon 03 Mar 2008 - 14:12:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Mar 2008 - 14:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive