[R] running R-code outside of R
Spencer Graves
spencer.graves at pdf.com
Wed Jun 25 02:04:16 CEST 2008
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.
More information about the R-help
mailing list