Why does Rcpp + RcppParallel with Rcpp::List throw me a fatal error?
I run R + Rcpp + RcppParallel from RStudio. I run a parallel loop that works if I do not use a Rcpp::List in the worker, but throws an abort if I use the Rcpp::List in the worker (even in a trivial way). Am I not allowed to use a List in a worker? Minimal example: The R file sourceCpp('minimal_example.cpp') nn = 1e2 ## the following works nicely my_test = list_paral_flawed(nn, 2) ## the following throws a fatal error my_test = list_paral_flawed(nn, 1) The corresponding file minimal_example.cpp (note the minimal change between struct_A1 and struct_A2) // [[Rcpp::depends(RcppArmadillo)]] #includ
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.