Deploy R script in a portable usb form
Asked Answered
R

2

9

I have an R script which I want to deploy so that it's idiot-proof, one click runs it etc. Unfortunately I don't have the means to pay for a server, and the environment in which it needs to run does not allow the installation of new software, only portable style apps can be run. (School computers) My script also relies on several non-base packages.

Is there any way to deploy R and my script in an easy to run way so it can be used off a usb stick?

Rooney answered 31/10, 2012 at 23:4 Comment(0)
D
6

You can install R on a USB drive and use it on any computer running the same OS. If you're using Windows, see question 2.6 of the R for Windows FAQ.

Dehiscent answered 31/10, 2012 at 23:11 Comment(2)
Will packages be installed to the usb as well?Rooney
I believe the default for Windows is to install packages in the in R-2.1X.X/library/ directory, so yes.Dehiscent
T
3

If you made the USB stick a bootable disk environment (say linux) with R installed on it, you could boot off it and do it that way.

Tashinatashkent answered 31/10, 2012 at 23:10 Comment(2)
...and put your script in the .Rprofile file, inside .First(), so it is run when R is started: see statmethods.net/interface/customizing.htmlFather
Unfortunately I can't boot into an alternative OS, but thanks for the suggestion.Rooney

© 2022 - 2024 — McMap. All rights reserved.