From edd at debian.org  Thu Aug 27 17:43:54 2009
From: edd at debian.org (Dirk Eddelbuettel)
Date: Thu, 27 Aug 2009 10:43:54 -0500
Subject: [Rd] Clarifications please.
In-Reply-To: <fc212e850908270659k192d3b31l22c6d6606bc972a0@mail.gmail.com>
References: <fc212e850908250541i16b1918h58187248193b4cbf@mail.gmail.com>
	<6phd46km2gl.fsf@gopher4.fhcrc.org>
	<fc212e850908260007w616bc806wccfe5e89d33b3466@mail.gmail.com>
	<fc212e850908260715u749f0c3dtfd8599477cb7c805@mail.gmail.com>
	<4A95690E.1070806@fhcrc.org>
	<fc212e850908270659k192d3b31l22c6d6606bc972a0@mail.gmail.com>
Message-ID: <19094.43450.715424.590651@ron.nulle.part>


Abhijit,

On 27 August 2009 at 19:29, Abhijit Bera wrote:
| Hi Martin
| 
| Sorry, I made a mistake, I wasn't looking at the syntactic correctness of
| your code, I just followed what you suggested.
| 
| Your method is valid when I want to extract data from a class. I was trying
| to get data from a covariance matrix. I'll put up code in my next mail
| showing how to access the different data types using different methods.

Have you looked RInside which covers your use case 

    - accessing an embedded R instance from an outer C++ program
     
    - sending data and/or parameters to R,

    - evaluating R expressesions

    - getting data back from R to the C++ layer

See 

    http://dirk.eddelbuettel.com/code/rinside.html 

for more.  Documentation is still sparse, but there are examples, and the
Rcpp classes are very useful for converting a number of basic R types to and
from C++ representations.

Dirk

-- 
Three out of two people have difficulties with fractions.



[Rd] Clarifications please.
Dirk Eddelbuettel