Hi inf0phile,
you can just run the command generated by devtools (including the step that
generates the package.so file) manually on the command line in the src
folder. Just remember to replace -g O2 with -g O0, then you get the
unoptimized shared object that shouldn't make any problems in debugge
* I made a minimal example in order to be reproduced:
library(Rcpp)
library(RcppArmadillo)
RcppArmadillo.package.skeleton()
which create the package anRpackage.
Setting the working directory in this package, I load it by:
library(devtools)
devtools::load_all()
* Then the basic function rcpparma
Hello,
I'm making a package with Rcpp (and RcppArmadillo) under the latest version of
Rstudio (1.3.959) and R (4.0.0).
- The compilation of the cpp files (with clang) is working well
clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/
R.framework/Resources/include
" -DNDEBUG