devtools::install_github("gaow/kbac")
Downloading GitHub repo gaow/kbac@HEAD
── R CMD build ────────────────────────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/private/var/folders/f7/v49nw0hx6rs85675mn0y3thr0000gn/T/Rtmp37Zdo5/remotesaf232ff3e2c/gaow-kbac-f3870dc/DESCRIPTION’ ...
─ preparing ‘KBAC’:
✔ checking DESCRIPTION meta-information
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘KBAC_0.01.tar.gz’
- installing source package ‘KBAC’ ...
** using staged installation
** libs
using C compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using SDK: ‘MacOSX13.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 elementary.c -o elementary.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 error.c -o error.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 exp.c -o exp.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 fdiv.c -o fdiv.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 gamma.c -o gamma.o
gamma.c:1613:54: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
result->err = 2.0 * GSL_DBL_EPSILON * prod * fabs(n-m);
^
gamma.c:1613:54: note: remove the call to 'fabs' since unsigned values cannot be negative
result->err = 2.0 * GSL_DBL_EPSILON * prod * fabs(n-m);
^~~~
1 warning generated.
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 hyperg.c -o hyperg.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 hypergeometric.c -o hypergeometric.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 infnan.c -o infnan.o
infnan.c:136:10: warning: 'finite' is deprecated: first deprecated in macOS 10.9 - Use isfinite((double)x) instead. [-Wdeprecated-declarations]
return finite(x);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:752:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double)
^
1 warning generated.
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c interface.cpp -o interface.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c kbac.cpp -o kbac.o
kbac.cpp:285:5: error: use of undeclared identifier 'random_shuffle'
random_shuffle(m_ydat.begin(), m_ydat.end());
^
1 error generated.
make: *** [kbac.o] Error 1
ERROR: compilation failed for package ‘KBAC’
- removing ‘/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/KBAC’
Warning message:
In i.p(...) :
installation of package ‘/var/folders/f7/v49nw0hx6rs85675mn0y3thr0000gn/T//Rtmp37Zdo5/fileaf228c9b1b/KBAC_0.01.tar.gz’ had non-zero exit status
this happened on R version 4.3 on MacBook, is there any way to fix this or this package is no longer supported/updated?
** using staged installation
** libs
using C compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using SDK: ‘MacOSX13.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 elementary.c -o elementary.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 error.c -o error.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 exp.c -o exp.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 fdiv.c -o fdiv.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 gamma.c -o gamma.o
gamma.c:1613:54: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
result->err = 2.0 * GSL_DBL_EPSILON * prod * fabs(n-m);
^
gamma.c:1613:54: note: remove the call to 'fabs' since unsigned values cannot be negative
result->err = 2.0 * GSL_DBL_EPSILON * prod * fabs(n-m);
^~~~
1 warning generated.
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 hyperg.c -o hyperg.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 hypergeometric.c -o hypergeometric.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 infnan.c -o infnan.o
infnan.c:136:10: warning: 'finite' is deprecated: first deprecated in macOS 10.9 - Use
isfinite((double)x)instead. [-Wdeprecated-declarations]return finite(x);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:752:12: note: 'finite' has been explicitly marked deprecated here
extern int finite(double)
^
1 warning generated.
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c interface.cpp -o interface.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c kbac.cpp -o kbac.o
kbac.cpp:285:5: error: use of undeclared identifier 'random_shuffle'
random_shuffle(m_ydat.begin(), m_ydat.end());
^
1 error generated.
make: *** [kbac.o] Error 1
ERROR: compilation failed for package ‘KBAC’
Warning message:
In i.p(...) :
installation of package ‘/var/folders/f7/v49nw0hx6rs85675mn0y3thr0000gn/T//Rtmp37Zdo5/fileaf228c9b1b/KBAC_0.01.tar.gz’ had non-zero exit status
this happened on R version 4.3 on MacBook, is there any way to fix this or this package is no longer supported/updated?