From oliver at first.in-berlin.de  Fri Jun 17 16:01:39 2011
From: oliver at first.in-berlin.de (oliver)
Date: Fri, 17 Jun 2011 16:01:39 +0200
Subject: [Rd] Controlling stdin and stdout in an embedded R instance
In-Reply-To: <4DFA880F.4000802@harmonia.com>
References: <4DFA880F.4000802@harmonia.com>
Message-ID: <20110617140139.GA9169@siouxsie>

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



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