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

From: oliver <oliver_at_first.in-berlin.de>
Date: Fri, 17 Jun 2011 16:01:39 +0200

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 17 Jun 2011 - 14:03:53 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 17 Jun 2011 - 14:50:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive