Skip to content
Prev 7482 / 10988 Next

[Rcpp-devel] Broken conversion from R-type integer to uvec after update to newer Rcpp version

Hi again,

The following code worked:
// [[Rcpp::depends(RcppArmadillo)]]
#include <RcppArmadillo.h>
#include <Rcpp.h>

using namespace Rcpp ;
using namespace arma ;
using namespace std ;

// [[Rcpp::export]]
uvec touvec(*uvec v*) {
  return v;
}

So maybe something goes wrong if i pass const & as an argument :(.

Best,
Venelin


2014-04-20 15:46 GMT+02:00 Venelin Mitov <vmitov at gmail.com>: