Re: [R] Compile R code into exe

From: Charles C. Berry <cberry_at_tajo.ucsd.edu>
Date: Wed, 02 Apr 2008 08:51:12 -0700

On Wed, 2 Apr 2008, francogrex wrote:

>
> *I did some search before, I saw in the Nabbles forum one question about it
> but without replies*.
>
> I have a program written in R. For regulatory purposes I need to make exe
> program of it and distribute to some users (the reason they don't want that
> I provide the raw R code and that users run it on their R application is
> that they don't want users to somehow inadvertantly mess up the code,
> especially that very few have R installed and know how to work with it). I
> am not very good in writing in C++, so my question is there a way to
> directly compile an R code into an executable program without having to
> convert it to C or C++ first? Thanks.

Not exactly.

If you wish to keep ***inadvertant*** changes from being made, you could put bundle everything in an R package, protect the core computations in functions that are protected in the package namespace so the user can only see wrapper functions, and provide a Windows binary. See Writing R Extensions for info on namespaces.

Your users will still have to have R.

A devoted hacker will hardly be slowed down by this, but curious noobies will be protected from themselves.

HTH, Chuck

> --
> View this message in context: http://www.nabble.com/Compile-R-code-into-exe-tp16444476p16444476.html
> Sent from the R help mailing list archive at Nabble.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.
>

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry_at_tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901

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 02 Apr 2008 - 15:59:28 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 02 Apr 2008 - 16:30:26 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