############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL cn.farms ### ############################################################################## ############################################################################## * installing to library ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library’ * installing *source* package ‘cn.farms’ ... ** using staged installation ** libs using C compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’ using C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’ using SDK: ‘MacOSX11.3.sdk’ clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c R_init_cnfarms.c -o R_init_cnfarms.o 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 -c laplace.cpp -o laplace.o laplace.cpp:275:10: warning: variable 'I1left' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] else if(argLeft >= 0.0 && argRight >= 0.0) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ laplace.cpp:364:36: note: uninitialized use occurs here double I2left=(-leftMy/leftSigma)*I1left+I0left; ^~~~~~ laplace.cpp:275:7: note: remove the 'if' if its condition is always true else if(argLeft >= 0.0 && argRight >= 0.0) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ laplace.cpp:275:10: warning: variable 'I1left' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized] else if(argLeft >= 0.0 && argRight >= 0.0) { ^~~~~~~~~~~~~~ laplace.cpp:364:36: note: uninitialized use occurs here double I2left=(-leftMy/leftSigma)*I1left+I0left; ^~~~~~ laplace.cpp:275:10: note: remove the '&&' if its condition is always true else if(argLeft >= 0.0 && argRight >= 0.0) { ^~~~~~~~~~~~~~~~~ laplace.cpp:198:15: note: initialize the variable 'I1left' to silence this warning double I1left; ^ = 0.0 laplace.cpp:275:10: warning: variable 'I1right' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] else if(argLeft >= 0.0 && argRight >= 0.0) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ laplace.cpp:365:39: note: uninitialized use occurs here double I2right=(-rightMy/rightSigma)*I1right+I0right; ^~~~~~~ laplace.cpp:275:7: note: remove the 'if' if its condition is always true else if(argLeft >= 0.0 && argRight >= 0.0) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ laplace.cpp:275:10: warning: variable 'I1right' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized] else if(argLeft >= 0.0 && argRight >= 0.0) { ^~~~~~~~~~~~~~ laplace.cpp:365:39: note: uninitialized use occurs here double I2right=(-rightMy/rightSigma)*I1right+I0right; ^~~~~~~ laplace.cpp:275:10: note: remove the '&&' if its condition is always true else if(argLeft >= 0.0 && argRight >= 0.0) { ^~~~~~~~~~~~~~~~~ laplace.cpp:199:16: note: initialize the variable 'I1right' to silence this warning double I1right; ^ = 0.0 laplace.cpp:442:6: warning: unused variable 'method' [-Wunused-variable] int method=0; ^ laplace.cpp:23:11: warning: unused variable 'steps' [-Wunused-const-variable] const int steps=30; ^ laplace.cpp:26:14: warning: unused variable 'integrationFailureFactor' [-Wunused-const-variable] const double integrationFailureFactor=5.0; ^ laplace.cpp:27:14: warning: unused variable 'sigmaFactor' [-Wunused-const-variable] const double sigmaFactor=0.1; ^ laplace.cpp:30:14: warning: unused variable 'Pi' [-Wunused-const-variable] const double Pi=M_PI; ^ laplace.cpp:31:14: warning: unused variable 'E' [-Wunused-const-variable] const double E=M_E; ^ laplace.cpp:34:14: warning: unused variable 'sqrt3' [-Wunused-const-variable] const double sqrt3=1.7320508075688772935274463415058723669428052538104; ^ laplace.cpp:35:14: warning: unused variable 'sqrt2Pi' [-Wunused-const-variable] const double sqrt2Pi=2.5066282746310005024157652848110452530069867406099; ^ 12 warnings generated. clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c sparse_farms.c -o sparse_farms.o clang++ -arch arm64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o cn.farms.so R_init_cnfarms.o laplace.o sparse_farms.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation installing to /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/00LOCK-cn.farms/00new/cn.farms/libs ** R ** demo ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (cn.farms)