Re: [R] compiling an R script
On 01.05.2012 00:12, strycker wrote: I'm interested in this question, too, not so I can hide code, but so I can run R code faster. It's been my experience that compiled code always runs faster than interpreted code. Can you explain further how to compile a front-end? -- View this message in context: http://r.789695.n4.nabble.com/compiling-an-R-script-tp2195949p4599541.html Sent from the R help mailing list archive at Nabble.com. __ R-help@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. Hello, there is a thread on Stack Overflow concerning this: http://stackoverflow.com/questions/1452235/does-an-r-compiler-exist Regards! -- GnuPG Key:7340821E http://pgp.mit.edu:11371/pks/lookup?search=0x7340821eop=indexfingerprint=on [[alternative HTML version deleted]] __ R-help@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.
Re: [R] compiling an R script
I'm interested in this question, too, not so I can hide code, but so I can run R code faster. It's been my experience that compiled code always runs faster than interpreted code. Can you explain further how to compile a front-end? -- View this message in context: http://r.789695.n4.nabble.com/compiling-an-R-script-tp2195949p4599541.html Sent from the R help mailing list archive at Nabble.com. __ R-help@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.
Re: [R] compiling an R script
Thanks a lot for your help Duncan, message forwarded. Jean-Christophe On Wed, May 12, 2010 at 15:20, Duncan Murdoch murdoch.dun...@gmail.comwrote: On 12/05/2010 8:34 AM, Jean-Christophe Domenge wrote: Dear R gurus, some guy at my company would like to compile a script written in R. In short he would like to create an execution directory containing only binaries resulting from the compilation of R and C++ sources, while keeping the said sources on another machine. He needs to write a new front end. The front end should have the script compiled into it, then after initializing R, it should parse and execute the script. The executable won't be self-contained. Normally R is compiled into several dynamic libraries (.dlls on Windows); it may be possible to compile it statically. However, R relies on its own library directory containing installed versions of packages. As far as I know there is no way to avoid using that. By the way, your guy shouldn't expect any support on doing this in the R-help list; it's a topic for the R-devel list. And he may not get much sympathy there: R is an open source project, and developing ways to hide code is not something that interests most of us. Duncan Murdoch [[alternative HTML version deleted]] __ R-help@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] compiling an R script
Dear R gurus, some guy at my company would like to compile a script written in R. In short he would like to create an execution directory containing only binaries resulting from the compilation of R and C++ sources, while keeping the said sources on another machine. Thanks for any help, Jean-Christophe [[alternative HTML version deleted]] __ R-help@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.
Re: [R] compiling an R script
On 12/05/2010 8:34 AM, Jean-Christophe Domenge wrote: Dear R gurus, some guy at my company would like to compile a script written in R. In short he would like to create an execution directory containing only binaries resulting from the compilation of R and C++ sources, while keeping the said sources on another machine. He needs to write a new front end. The front end should have the script compiled into it, then after initializing R, it should parse and execute the script. The executable won't be self-contained. Normally R is compiled into several dynamic libraries (.dlls on Windows); it may be possible to compile it statically. However, R relies on its own library directory containing installed versions of packages. As far as I know there is no way to avoid using that. By the way, your guy shouldn't expect any support on doing this in the R-help list; it's a topic for the R-devel list. And he may not get much sympathy there: R is an open source project, and developing ways to hide code is not something that interests most of us. Duncan Murdoch __ R-help@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.