Re: [Rcpp-devel] Using formula

2024-09-26 Thread Denis Haine
Hi, Quick follow-up and additional question. I got it working with fastglm: #include using namespace Rcpp; // [[Rcpp::export]] NumericVector misclass(NumericMatrix obs_mat) { // Obtain environment containing function Rcpp::Environment base("package:stats"); // Obtaining namespace

Re: [Rcpp-devel] Using formula

2024-09-04 Thread Dirk Eddelbuettel
On 4 September 2024 at 15:37, Denis Haine wrote: | Hi, | | Sorry for a beginner's question. I'm trying to call an R function (glm()) | inside my cpp code. The code compiles with no problem, but when I'm running it, | it cannot find the second element of the formula, i.e. the x in y~x. The error