############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL HEM ### ############################################################################## ############################################################################## * installing to library ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library’ * installing *source* package ‘HEM’ ... ** this is package ‘HEM’ version ‘1.81.0’ ** 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=gnu2x -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c hem.c -o hem.o In file included from hem.c:17: ./random4f.h:126:18: error: unknown type name 'alpha' double gammadist(alpha) ^ ./random4f.h:126:24: error: expected ';' after top level declarator double gammadist(alpha) ^ ; ./random4f.h:128:1: error: expected identifier or '(' { double u0,x,y; ^ hem.c:980:44: warning: variable 'raccept' set but not used [-Wunused-but-set-variable] double temp, temp2, MHratio, U, old, new, raccept; ^ hem.c:1079:44: warning: variable 'raccept' set but not used [-Wunused-but-set-variable] double temp, temp2, MHratio, U, old, new, raccept; ^ hem.c:1390:12: warning: variable 'k' set but not used [-Wunused-but-set-variable] int i, j, k, m, n; ^ hem.c:1593:16: warning: variable 'l' set but not used [-Wunused-but-set-variable] int i, j, k, l; ^ 4 warnings and 3 errors generated. make: *** [hem.o] Error 1 ERROR: compilation failed for package ‘HEM’ * removing ‘/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library/HEM’