From simon.urbanek at r-project.org  Tue Jan 20 21:20:16 2009
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Tue, 20 Jan 2009 15:20:16 -0500
Subject: [Rd] Embeding R
In-Reply-To: <op.un2f5xiq67e68g@l017892.intranet.ens-lsh.fr>
References: <op.un2az91i67e68g@l017892.intranet.ens-lsh.fr>
	<4E46EB6C-83B2-4821-8B6C-6C9564D68CB8@r-project.org>
	<op.un2f5xiq67e68g@l017892.intranet.ens-lsh.fr>
Message-ID: <929852D8-9C2D-46CF-BE1D-991E12536E15@r-project.org>


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



[Rd] Embeding R
Simon Urbanek