Dear Group, Is there some way for me to package a few lines of R-code as exe and have it running in the background? (unable to find info in the archives) Even better if I can package it as an installation and send to my team who do not have any background in programming / R? If they can install and run the exe ... it would suffice. Thanks, S
On 12/11/2010 3:23 AM, Santosh Srinivas wrote:> Dear Group, > > Is there some way for me to package a few lines of R-code as exe and have it > running in the background? (unable to find info in the archives) > > Even better if I can package it as an installation and send to my team who > do not have any background in programming / R? If they can install and run > the exe ... it would suffice.You can call R functions from your own C program (see Writing R Extensions), but packaging everything into a single file would not be easy. So basically your team will need to install a copy of R, and then you might as well send them scripts written in R, rather than writing a whole new front end. Duncan Murdoch
On 11/12/2010 09:23 AM, Santosh Srinivas wrote:> Dear Group, > > Is there some way for me to package a few lines of R-code as exe and have it > running in the background? (unable to find info in the archives) > > Even better if I can package it as an installation and send to my team who > do not have any background in programming / R? If they can install and run > the exe ... it would suffice. > > Thanks, > S > > ______________________________________________ > 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.You could also create a .BAT file (assuming you're working under windows), where you execute your script using Rscript. You team will still need to install R. What also might work when your team is working on one network: Install R on a network drive. In your .BAT file you can then set up the machine for R (e.g. add the R binary directory to your path and tell R where to find the libraries). You will have to check the R Administration manual for the exact details. You will then only have to send your team the .BAT file and the R-script (which could also be on the network drive). HTH Jan
On Nov 12, 2010, at 3:23 AM, Santosh Srinivas wrote:> Dear Group, > > Is there some way for me to package a few lines of R-code as exe and > have it > running in the background? (unable to find info in the archives) > > Even better if I can package it as an installation and send to my > team who > do not have any background in programming / R? If they can install > and run > the exe ... it would suffice. >Isn't this the purpose of littler? http://dirk.eddelbuettel.com/code/littler/README -- David Winsemius, MD West Hartford, CT