* installing *source* package ‘BHTSpack’ ... ** package ‘BHTSpack’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘g++-13 (GCC) 13.2.0’ make[2]: Entering directory '/data/gannet/ripley/R/packages/tests-noRemap/BHTSpack/src' g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -DR_NO_REMAP -c BHTSpack.cpp -o BHTSpack.o BHTSpack.cpp: In function 'SEXPREC* hat_pai(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': BHTSpack.cpp:12:11: error: 'length' was not declared in this scope 12 | int M = length(N); | ^~~~~~ BHTSpack.cpp:13:19: error: 'coerceVector' was not declared in this scope; did you mean 'Rf_coerceVector'? 13 | int H = INTEGER(coerceVector(HH, INTSXP))[0]; | ^~~~~~~~~~~~ | Rf_coerceVector In file included from BHTSpack.cpp:3: BHTSpack.cpp:29:25: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 29 | SEXP hatpai = PROTECT(allocVector(REALSXP, length(z))); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ BHTSpack.cpp: In function 'SEXPREC* stick_multnorm_z(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': BHTSpack.cpp:61:11: error: 'length' was not declared in this scope 61 | int M = length(N); | ^~~~~~ BHTSpack.cpp:62:19: error: 'coerceVector' was not declared in this scope; did you mean 'Rf_coerceVector'? 62 | int H = INTEGER(coerceVector(HH, INTSXP))[0]; | ^~~~~~~~~~~~ | Rf_coerceVector BHTSpack.cpp:70:21: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 70 | SEXP pr = PROTECT(allocVector(REALSXP, length(z)*H)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ BHTSpack.cpp: In function 'SEXPREC* stick_multnorm_h(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': BHTSpack.cpp:111:29: error: 'coerceVector' was not declared in this scope; did you mean 'Rf_coerceVector'? 111 | double *xz = REAL(PROTECT(coerceVector(z, REALSXP))); | ^~~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ BHTSpack.cpp:118:11: error: 'length' was not declared in this scope 118 | int M = length(N); | ^~~~~~ BHTSpack.cpp:123:21: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 123 | SEXP pr = PROTECT(allocVector(REALSXP, MKH)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ make[2]: *** [/data/gannet/ripley/R/R-devel/etc/Makeconf:202: BHTSpack.o] Error 1 make[2]: Leaving directory '/data/gannet/ripley/R/packages/tests-noRemap/BHTSpack/src' ERROR: compilation failed for package ‘BHTSpack’ * removing ‘/data/gannet/ripley/R/packages/tests-noRemap/Libs/BHTSpack-lib/BHTSpack’ Command exited with non-zero status 1 Time 0:01.77, 1.27 + 0.23