RInside release 0.2.2

March 22, 2010

(This article was first published on dirk.eddelbuettel, and kindly contributed to R-bloggers)

The shiny new 0.2.2 release of RInside has just
been uploaded to CRAN; it should hit
mirrors tommorow. Sources are also at my RInside page.

RInside is a set of convenience classes to facilitate embedding of R
inside of C++ applications. It works particularly well with Rcpp and now
depends on it.

This is the first release since version 0.2.1 in early January.
Romain and I made
numerous changes to
in the meantime. With this release, RInside is
starting to catch up by taking advantage of many new automatic (templated)
type converters. We have updated the existing examples, and added several
new ones. These are all visibile directly via the
Doxygen-generated documentation
under the Files heading. Two examples are
also shown directly on the

Also added are new examples showing how to use RInside to embed
R inside C++ applications using MPI for parallel computing. This was
contributed via two examples files by Jianping Hua, and we reworked the
examples slightly (and added two variants that use MPI’s C++ API).

As it is so short, here is the basic ‘Hello, World’ example now showing the
simpler Rcpp-based variable assignment:

// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8; -*-
// Simple example showing how to do the standard 'hello, world' using embedded R
// Copyright (C) 2009 Dirk Eddelbuettel
// Copyright (C) 2010 Dirk Eddelbuettel and Romain Francois
// GPL'ed #include <RInside.h> // for the embedded R via RInside

int main(int argc, char *argv[]) { RInside R(argc, argv); // create an embedded R instance R["txt"] = "Hello, world!\n";	// assign a char* (string) to 'txt' R.parseEvalQ("cat(txt)"); // eval the init string, ignoring any returns exit(0);

One minor setback is that the examples currently segfault on Windows. That
may be an issue with linking and class instantiation or something
related. Romain and I focus much more on Linux and OS X, so this has not
gotten a lot of attention. Debugging help would be appreciated.

To leave a comment for the author, please follow the link and comment on their blog: dirk.eddelbuettel.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.


Mango solutions

RStudio homepage

Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training



CRC R books series

Contact us if you wish to help support R-bloggers, and place your banner here.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)