[Rd] Help with OCaml bindings for R interpreter.
simon.urbanek at r-project.org
Sat Oct 10 22:58:35 CEST 2009
On Oct 10, 2009, at 3:53 PM, Guillaume Yziquel wrote:
> I've made out a Debian package out of Maxence Guesdon's OCaml/R
> The upstream software itself is on the following page:
> This binding is dynamically linked to the /usr/lib/R/lib/libR.so and
> the /usr/lib/libRmath.so libraries. Its purpose is to access R
> functionalities from OCaml programs.
> However, as it now stands, the binding is not fully functional: When
> OCaml program is compiled with this binding, to generate, say,
> myprog.byte, it is necessary to run
> R CMD ./myprog.byte
> in order for the program to work as expected. I would therefore like
> know how to *completely* embed the R interpreter inside my binding.
It *is* completely embedded. R CMD simply sets up the correct
environment for the current R. For a given, specific R installation
you could re-create the environment in the executable (see R CMD sh -c
set), but by definition it is specific for that installation so you'd
have to compile that binary at install time.
> Could anyone provide generic information on this topic, or point me to
> the right documentation?
> All the best,
> Guillaume Yziquel
> R-devel at r-project.org mailing list
More information about the R-devel