Re: [R] running R-code outside of R

From: Spencer Graves <spencer.graves_at_pdf.com>
Date: Tue, 24 Jun 2008 17:04:16 -0700

      A short answer to your question is 'yes and no': R is an interpreted language. There may have been attempts to create a "compiler" for R, but I don't know if any have actually succeeded very well.

      However, there are ways to (a) call R from other languages and (b) run R in batch mode. For example, I've seen packages that allow Excel users to run selected R functions. I'm not current on preferred ways of doing that, but if I had to do it, I might consider the RExcelInstaller and RODBC packages. Also, I know people have created web pages that pass data to R and display the results in a web page without burdening the user with learning R. I don't know how this works, but I just got 125 hits from "RSiteSearch('running R in batch mode')".

      If you want to provide more specifics of what you would like to do, you might get more useful suggestions. And, yes, I do believe in magic, but sometimes it requires a little creative thought.

      Hope this helps. 
      Spencer Graves

Rolf Turner wrote:
>
> On 25/06/2008, at 6:01 AM, Roger Leenders wrote:
>
>>
>> R 2.7.0, WinXP
>>
>> Hi list,
>>
>> I have written some code in R that I would like to share with others who
>> are not R-users. Is there a way to compile the code so it will run
>> outside of R?
>> The best thing would be a functionality to compile the code into a
>> ".exe"
>> file that does not require the user to have R installed or to know
>> how to
>> use R. The persons I would like to make the program available to are
>> unlikely to ever need or use software like R.
>>
>> Is there a functionality that will allow others to use my code without
>> needing R itself?
>
> This reminds me of that old Lovin' Spoonful song:
>
> ``Do You Believe in Magic?''
>
>
> cheers,
>
> Rolf Turner
>
> ######################################################################
> Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
>
> ______________________________________________
> 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 Wed 25 Jun 2008 - 00:12:59 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 Wed 25 Jun 2008 - 00:31:42 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