[R] Compiling R code to native code?
Jeff Newmiller
jdnewmil at dcn.davis.ca.us
Sun Jan 29 02:01:45 CET 2012
Nope. Most users get speed by using vectorized calculations. If you have already identified how to get correct answers, the next step is something like Rcpp or linking to a shared library written in your language of choice.
But seriously, vectorizing is enough for most applications, and making sure the answer is right doesn't usually require compiled code.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
Gregory Propf <gregorypropf at yahoo.com> wrote:
>Simple question: is there a way to compile R scripts to native code?
>�If not is there anything else that might improve speed? �I'm not even
>sure that R compiles internally to byte code or not. �I assume it does
>since all modern languages seem to do this. �Maybe there's a JIT
>compiler? �Yes, I have searched Google and get lots of stuff that's
>seems confusing. �I just want to know what packages to install and how
>to use them to generate binaries if they exist.
> [[alternative HTML version deleted]]
>
>______________________________________________
>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