############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL Repitools ### ############################################################################## ############################################################################## * installing to library ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library’ * installing *source* package ‘Repitools’ ... ** using staged installation ** libs using C compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’ using C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’ using SDK: ‘MacOSX11.3.sdk’ clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -D R_NO_REMAP -I. -fPIC -falign-functions=64 -Wall -g -O2 -c const.c -o const.o clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -D R_NO_REMAP -I. -fPIC -falign-functions=64 -Wall -g -O2 -c hyp2f1.c -o hyp2f1.o hyp2f1.c:126:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] double hyp2f1( a, b, c, x ) ^ hyp2f1.c:294:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] double hyt2f1( a, b, c, x, loss ) ^ hyp2f1.c:438:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] double hys2f1( a, b, c, x, loss ) ^ 3 warnings generated. clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/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 ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/Repitools’