[Rd] Embeding R
Simon Urbanek
simon.urbanek at r-project.org
Tue Jan 20 21:20:16 CET 2009
On Jan 20, 2009, at 12:28 , Sylvain Loiseau wrote:
>> Yes. Since you mentioned JRI - it gives you all of the above for
>> free (there are CRAN binaries for Windows and OS X; it installs on
>> unix system with Java; you can link arbitrary libraries from R -
>> that's how R works). Good pointers are JavaGD (for graphics so you
>> can embed it in your Java look and feel) and JGR since it does all
>> this already.
>
> Thanks for your answer.
>
> About R packages: how can I build, for each OS, a "distribution"
> containing the R Engine and the R packages I need as binaries
> compiled for the OS?
>
Use the official R installer to install R and then the usual
install.packages(...) to install the packages. On some systems you can
"freeze" all this by simply packaging it all into one archive (if you
know where all relevant files are). I would not recommend that for R
itself because the installers have important side-effects, but you can
safely archive packages as long as you unpack them in exactly the same
location.
Cheers,
S
More information about the R-devel
mailing list