From Jordi.Molins at drkw.com  Thu Jul 28 13:21:18 2005
From: Jordi.Molins at drkw.com (Molins, Jordi)
Date: Thu, 28 Jul 2005 13:21:18 +0200
Subject: [Rd] Calling S functions from C routine not called from S?
Message-ID: <C5A76BA0CA4D734CA725124C4D6397AC8BFE37@ibfftce502.de.ad.drkw.net>

Dear R Developers,

In the book "S programming", page 138-9, it is said that "(...) it is only
possible to use call_S to call S functions from within C functions called
from S". However, in "S programming" page 148-9 it is stated:  "It can be
much easier to debug the code while called from a C or FORTRAN main program
(...)".

My question is: is it possible to call S functions from a C routine not
called from S? (what I mean is to use S as an extended library in
independent C++ code). The second statement seems to imply that it is
possible to do so, right?

If it is possible, is there a "Hello, World!" example?

Kind regards

Jordi



--------------------------------------------------------------------------------
The information contained herein is confidential and is inte...{{dropped}}



[Rd] Calling S functions from C routine not called from S?
Molins, Jordi