Skip to content
Back to formatted view

Raw Message

Message-ID: <4AF9AB66.90800@stats.uwo.ca>
Date: 2009-11-10T18:05:26Z
From: Duncan Murdoch
Subject: Interfacing R and C++
In-Reply-To: <b32951aa0911100935y5f7d3638gb9200c645e9f221d@mail.gmail.com>

On 11/10/2009 12:35 PM, Nathan Harmston wrote:
> Hi,
> 
> I m currently working on interfacing R and C++ (passing a matrix from
> R to C++, doing some stuff, returning a vector of results). There seem
> to be a number of ways of doing this, such as rcpp and swig. Is there
> a recommended way of doing this? In the long run I would like what I m
> working on to be portable across OS etc.

Just follow the instructions in the Writing R Extensions manual.  You're 
not doing anything very unusual, so rcpp and swig may be overkill.

Duncan Murdoch