RInside Version 0.2.12
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
rinside_slava.cpp
Go to the documentation of this file.
1 
3 #include <RInside.h>
4 #include <Rcpp.h>
5 #include <boost/shared_ptr.hpp>
6 
7 static boost::shared_ptr<RInside> Rinst;
8 
9 int main(int argc, char *argv[]) {
10  Rinst = boost::shared_ptr<RInside>(new RInside(argc, argv));
11  const int N = 173; // made const for -Wall ....
12  double v[N];
13  std::fill(v, v+N, 0.0);
14  Rcpp::NumericVector x(v, v+N);
15  std::cout << "All good\n";
16  return 0;
17 }
int main(int argc, char *argv[])
static boost::shared_ptr< RInside > Rinst