############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL eiR ### ############################################################################## ############################################################################## * installing to library ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library’ * installing *source* package ‘eiR’ ... ** using staged installation ** libs using C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’ using SDK: ‘MacOSX11.3.sdk’ 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 optimFunctions.cc -o optimFunctions.o optimFunctions.cc:40:10: error: use of undeclared identifier 'length' int k = length(xS); //length of result vector ^ optimFunctions.cc:41:10: error: use of undeclared identifier 'length' int m = length(dS); //length of distance vector ^ optimFunctions.cc:91:24: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? SEXP result = PROTECT(allocVector(REALSXP, 1)); ^~~~~~~~~~~ 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); ^ optimFunctions.cc:99:10: error: use of undeclared identifier 'length' int k = length(xS); //length of result vector ^ optimFunctions.cc:100:10: error: use of undeclared identifier 'length' int m = length(dS); //length distance vector ^ optimFunctions.cc:102:24: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? SEXP result = PROTECT(allocVector(REALSXP, k)); ^~~~~~~~~~~ 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); ^ 6 errors generated. make: *** [optimFunctions.o] Error 1 ERROR: compilation failed for package ‘eiR’ * removing ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/eiR’