* installing *source* package ‘PBSddesolve’ ...
** package ‘PBSddesolve’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using SDK: ‘MacOSX11.3.sdk’
clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c PBSddesolve.c -o PBSddesolve.o
clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c ddeq.c -o ddeq.o
clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c init.c -o init.o
clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c r_model.c -o r_model.o
PBSddesolve.c:349:17: error: call to undeclared function 'R_ClosureFormals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        list = PROTECT(R_ClosureFormals(gradFunc)); /* protect 1 */
                       ^
PBSddesolve.c:349:17: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'SEXP' (aka 'struct SEXPREC *') [-Wint-conversion]
        list = PROTECT(R_ClosureFormals(gradFunc)); /* protect 1 */
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Frameworks/R.framework/Resources/include/Rinternals.h:371:31: note: expanded from macro 'PROTECT'
#define PROTECT(s)      Rf_protect(s)
                                   ^
/Library/Frameworks/R.framework/Resources/include/Rinternals.h:1110:21: note: passing argument to parameter here
SEXP Rf_protect(SEXP);
                    ^
1 warning and 1 error generated.
make: *** [PBSddesolve.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package ‘PBSddesolve’
* removing ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.4/PBSddesolve.Rcheck/PBSddesolve’