############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data Repitools ### ############################################################################## ############################################################################## * checking for file ‘Repitools/DESCRIPTION’ ... OK * preparing ‘Repitools’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to build vignettes ----------------------------------- * installing *source* package ‘Repitools’ ... ** using staged installation ** libs using C compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’ using C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’ using SDK: ‘MacOSX11.3.sdk’ clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -D R_NO_REMAP -I. -fPIC -falign-functions=64 -Wall -g -O2 -c const.c -o const.o clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -D R_NO_REMAP -I. -fPIC -falign-functions=64 -Wall -g -O2 -c hyp2f1.c -o hyp2f1.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c mmeansd.cpp -o mmeansd.o mmeansd.cpp:49:20: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? PROTECT( res = allocVector( REALSXP, nval * 3) ); ^~~~~~~~~~~ Rf_allocVector /Library/Frameworks/R.framework/Resources/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' #define PROTECT(s) Rf_protect(s) ^ /Library/Frameworks/R.framework/Resources/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); ^ mmeansd.cpp:96:20: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? PROTECT( dim = allocVector(INTSXP, 2)); ^~~~~~~~~~~ Rf_allocVector /Library/Frameworks/R.framework/Resources/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' #define PROTECT(s) Rf_protect(s) ^ /Library/Frameworks/R.framework/Resources/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); ^ 2 errors generated. make: *** [mmeansd.o] Error 1 ERROR: compilation failed for package ‘Repitools’ * removing ‘/private/tmp/RtmpnHf3pK/Rinst6b962b731305/Repitools’ ----------------------------------- ERROR: package installation failed