search for: rcpp_hello_world

Displaying 2 results from an estimated 2 matches for "rcpp_hello_world".

2013 Nov 03
1
How to make an R package that uses Boost.Thread, qualified to be published on CRAN or shared by the most
...forgive me use win-builder as a test machine, so I post my questions here. The test package is derived from command Rscript -e "Rcpp.package.skeleton()", below just lists some modifications by me. The outputs in 00install.out are too long to be pasted here. ------------------------------- rcpp_hello_world.cpp ------------------------------- #include "rcpp_hello_world.h" #include "boost/lambda/lambda.hpp" #include <iostream> #include <iterator> #include <algorithm> #include <vector> #include "boost/thread.hpp" void wait(int seconds) { boost::...
2011 May 06
1
Create and access several instances of a C++ class from R
Hello We have a C++ class with several methods that manipulate an object. How is it possible to create several instances of that class *from R* in the C++ realm, which can then be accessed via a given name character? Symbolic example (we hope this illustrates our problem): // C++ side: class Foo{ ... } // perhaps: void my_new_instance_wrapper("the_character") // plain to see that I am