I have been unable to install the package in my make.
This is ther error:
Retrieving 'https://cloud.r-project.org/src/contrib/Rcpp_1.0.4.6.tar.gz' ...
OK [file is up to date]
Installing Rcpp [1.0.4.6] ...
FAILED
Error installing package 'Rcpp':
================================
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** using staged installation
make: *** No rule to make target `clean'. Stop.
./cleanup: line 39: cd: vignettes/rmd/: No such file or directory
** libs
/usr/local/bin/gcc-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c api.cpp -o api.o
/usr/local/bin/gcc-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c attributes.cpp -o attributes.o
/usr/local/bin/gcc-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c barrier.cpp -o barrier.o
/usr/local/bin/gcc-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c date.cpp -o date.o
/usr/local/bin/gcc-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c module.cpp -o module.o
/usr/local/bin/gcc-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include/ -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c rcpp_init.cpp -o rcpp_init.o
/usr/local/bin/gcc-9 -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 Rcpp.so api.o attributes.o barrier.o date.o module.o rcpp_init.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Users/heverz/Documents/R_projects/extractus/renv/staging/1/00LOCK-Rcpp/00new/Rcpp/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘Rcpp’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/heverz/Documents/R_projects/extractus/renv/staging/1/00LOCK-Rcpp/00new/Rcpp/libs/Rcpp.so':
dlopen(/Users/heverz/Documents/R_projects/extractus/renv/staging/1/00LOCK-Rcpp/00new/Rcpp/libs/Rcpp.so, 6): Symbol not found: __ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale
Referenced from: /Users/heverz/Documents/R_projects/extractus/renv/staging/1/00LOCK-Rcpp/00new/Rcpp/libs/Rcpp.so
Expected in: flat namespace
in /Users/heverz/Documents/R_projects/extractus/renv/staging/1/00LOCK-Rcpp/00new/Rcpp/libs/Rcpp.so
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/heverz/Documents/R_projects/extractus/renv/staging/1/Rcpp’
Error: install of package 'Rcpp' failed
Is the problem do to gcc compiler? Should I use a different one (clang)?
This my .R/Makevars:
CC=/opt/local/bin/gcc-mp-4.7
CXX=/opt/local/bin/g++-mp-4.7
CPLUS_INCLUDE_PATH=/opt/local/include:$CPLUS_INCLUDE_PATH
LD_LIBRARY_PATH=/opt/local/lib:$LD_LIBRARY_PATH
CXXFLAGS= -g0 -O2 -Wall
MAKE=make -j4
Best
I have been unable to install the package in my make.
This is ther error:
Is the problem do to gcc compiler? Should I use a different one (clang)?
This my
.R/Makevars:Best