Hello, I’m trying to add stan capabilities to a package via rstantools::use_rstan().
I’m starting to have a bunch of errors around. I’m working on MacOs 10.15.3 and R v4.0. I can run rstan without problems outside the development of the package. rstantools is v2.1.0, rstan is 2.19.3
Here is the error that I see if I run either pkgbuild::compile_dll(force = T)
, devtools::document()
or devtools::install()
clang++ -mmacosx-version-min=10.13 -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o PooledPrevalence.so RcppExports.o stanExports_Estimation_model.o stanExports_Estimation_model_sens.o -L’/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppParallel/lib/’ -Wl,-rpath /Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppParallel/lib/ -ltbb -ltbbmalloc -F/Library/Frameworks/R.framework/… -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option ‘-L’/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppParallel/lib/’’
ld: library not found for -ltbb
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [PooledPrevalence.so] Error 1
ERROR: compilation failed for package ‘PooledPrevalence’
Thanks!