An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120810/e3b0f470/attachment.pl>
question about windows Rgui.exe startup
2 messages · Ryan Rene, Bert Gunter
Read ?Startup _carefully_ (it's pretty dense!). Does the .First file on the search path give you the functionality you seek? -- Bert
On Fri, Aug 10, 2012 at 12:34 PM, Ryan Rene <renert at hotmail.com> wrote:
Hi all,
I had a specific question about the loading of objects
into R. I apologize in advance if I have overlooked anything in the
manual but as far as I can tell I have yet to find a solution to my
problem.
I am on a Windows platform.
So what I am trying
to do is have R read in a binary file on startup from the Windows system
command line and startup Rgui.exe with these options without having to
change Rprofile.site.
I have written a script called myscript.r which allows R to read in the binary files and load my objects.
I would like to load up those object from binary format "on startup" into R(interactive)
like so:
<windows key + r>
C:\Program Files\R\R-2.15.0\bin\x64\Rgui.exe < "C:\Users\Ryan\Desktop\myscript.r"
but this does not work.
I can do it in R batch mode like this:
C:\Program Files\R\R-2.15.0\bin\x64\R.exe CMD BATCH --vanilla --slave "C:\Users\Ryan\Desktop\myscript.r"
So
what I am interested in is if there are any options Rgui that allow me
to load a script "on startup" (before opening rgui.exe)
If not I
am wondering if there is any way of transferring the input I get from R
batch mode to another instance of Rgui.exe or where Rgui.exe reads in
its objects.
Or maybe there is a way to point Rgui.exe to another startup file of my choosing without having to alter Rprofile.site.
Any help on this would be greatly appreciated.
Thank you very much and have a wonderful day!
Ryan Rene
Epicenter Software
80 S. Lake ave,
Pasadena CA
91101
suite 550
[[alternative HTML version deleted]]
______________________________________________ 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.
Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm