[Rd] Controlling stdin and stdout in an embedded R instance

oliver oliver at first.in-berlin.de
Fri Jun 17 16:01:39 CEST 2011


Hello,

I'm new in exploring R-internals,
and also did not explored embedding R into C.
I did some C-extensions for packages so far.

Nevertheless I can give you a hint,
which might be helpful; the example which you linked to,
uses R.dll.

DLL means: Dynamic linked library.
On Unix and Linux the aequivalent is shared libraries,
or also dynamic linked libraries;
another term that is used here is "dynamic linking loader",
which provides the possibilities to "load" those libraries,
which means, make them available in your application.

To use a shared library on Unix/Linux you can use the functions

  dlopen()
  dlerror()
  dlsym()
  dlclose()

The manpages will explain you the details.

Hope that helps.


Ciao,
   Oliver



More information about the R-devel mailing list