[R] Running R from a CD on Windows?

Gabor Grothendieck ggrothendieck at gmail.com
Thu Dec 27 21:36:54 CET 2007


There is a batch script, rgui.bat, in batchfiles, see home page at
batchfiles.googlecode.com, that will search the registry and a
few other places for R and start up R if it can find it.  It does
not search  CD's automatically but that would be simple to add.

On Dec 27, 2007 3:25 PM, Charles Annis, P.E.
<Charles.Annis at statisticalengineering.com> wrote:
> Greetings, R-ians:
>
> Yes it's easy to run R from a CD: I copied my windows installation folder to
> the CD, then copied my R working directory to the CD.
>
> To run from the CD, I copy the working directory from the CD to the desktop,
> and then create an R desktop icon that points to Rgui.exe on the CD, and
> starts in the working directory folder I just copied to the desktop.
>
> The problem is that to create the desktop R icon you need to know that
> Rgui.exe is on the CD in the bin subfolder of the R-2.6.1 folder, which I
> know but the person being introduced to R for the first time does not.  And
> creating a desktop icon is busywork that some find annoying.  And then the
> user needs to copy the basic working directory folder to the desktop, since
> R needs to be able to write to it and writing to the CD can't work with a
> write-once CD.  Alas, my uses just want to put the CD in the drive and have
> the autorun facility take care all this:
>
> 1) If there isn't a folder named "R-project" on the desktop, copy the one on
> the CD to the desktop.
> 2) Create a desktop icon for R that points to Rgui.exe on the CD.  The
> installation must determine what drive is currently being accessed, since
> "D:\R-2.6.1\bin\Rgui.exe" would only work if the CD was running from drive
> D.
> 3) Have the icon Start in "desktop\R-project" which is legal if you create
> the icon yourself, but apparently not legal to put on the CD since the
> windows are erased and cannot be filled in if the icon is copied back from
> the CD to the desktop.
>
> Since the basic R installation on Windows can create a desktop icon, I know
> this must be possible.  I would be grateful for any help.
>
> Thanks
>
> Charles Annis, P.E.
>
> Charles.Annis at StatisticalEngineering.com
> phone: 561-352-9699
> eFax: 614-455-3265
> http://www.StatisticalEngineering.com
>
>
> ______________________________________________
> 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