- Notifications
You must be signed in to change notification settings - Fork38
eddelbuettel/rinside
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The RInside package provides a few classes for seamless embedding ofR inside ofC++ applications by relying onRcpp.
Provided with the package itself are nine subdirectories with examples: from more than a dozen basic command-line examples (in directorystandard) to graphical user-interfaces (using bothQt and Wt), linear algebra withArmadillo andEigen, parallel computing with MPI to asandboxed server, and (since release 0.2.16) a simple (and more limited) interface for embedding insice C applications.
The simplest example (modulo its header) isexamples/standard/rinside_sample0.cpp
#include<RInside.h>// for the embedded R via RInsideintmain(int argc,char *argv[]) { RInsideR(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 returnsexit(0);}
TheQt example directory producesthis application for showing how to use R (to estimate densities) inside a C++ executable (providing the GUI):
The code is portable across operating systems. Similar, theWt example directorycontains this C++-based web application doing the same:
TheRInside web page hassome more details.
Dirk Eddelbuettel, Romain Francois, and Lance Bachmeier
GPL (>= 2)
About
Seamless embedding of R in C++ programs
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors13
Uh oh!
There was an error while loading.Please reload this page.

