* installing *source* package ‘samara’ ... ** using staged installation ** libs using C++ compiler: ‘Debian clang version 18.1.8 (1+b1)’ using C++11 clang++-18 -std=gnu++11 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -I. -fpic -g -O3 -Wall -pedantic -Wno-error=enum-constexpr-conversion -DR_NO_REMAP -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/Rcpp.h:27: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/RcppCommon.h:30: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/Rcpp/r/headers.h:26:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 26 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ 1 warning generated. clang++-18 -std=gnu++11 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -I. -fpic -g -O3 -Wall -pedantic -Wno-error=enum-constexpr-conversion -DR_NO_REMAP -c rcpp_samara.cpp -o rcpp_samara.o In file included from rcpp_samara.cpp:1: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/Rcpp.h:27: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/RcppCommon.h:30: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/Rcpp/r/headers.h:26:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 26 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ In file included from rcpp_samara.cpp:4: In file included from ./rsamara_types.hpp:10: In file included from ./samara.h:4: ./samara_defines.h:19:20: warning: unused function 'FloatToStr' [-Wunused-function] 19 | static std::string FloatToStr(double val) { | ^~~~~~~~~~ 2 warnings generated. clang++-18 -std=gnu++11 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -I. -fpic -g -O3 -Wall -pedantic -Wno-error=enum-constexpr-conversion -DR_NO_REMAP -c samara.cpp -o samara.o In file included from samara.cpp:3: ./processes/processes.h:2023:31: warning: explicitly assigning value of variable of type 'double' to itself [-Wself-assign] 2023 | A_GrowthStructTot = A_GrowthStructTot; | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ samara.cpp:50:10: warning: variable 'simulationFinished' set but not used [-Wunused-but-set-variable] 50 | bool simulationFinished = false; | ^ samara.cpp:58:10: warning: expression result unused [-Wunused-value] 58 | for (DateEnCours; DateEnCours < DateFinSimul; DateEnCours++) { | ^~~~~~~~~~~ samara.cpp:358:10: warning: expression result unused [-Wunused-value] 358 | for (DateEnCours; DateEnCours < DateFinSimul; DateEnCours++) { | ^~~~~~~~~~~ samara.cpp:719:12: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] 719 | if(!NumPhase == 0 && !(NumPhase == 1 && ChangePhase == 1)) samara::EvalETRETM(Evap, Tr, TrPot, ETM, ETR); | ^ ~~ samara.cpp:719:12: note: add parentheses after the '!' to evaluate the comparison first 719 | if(!NumPhase == 0 && !(NumPhase == 1 && ChangePhase == 1)) samara::EvalETRETM(Evap, Tr, TrPot, ETM, ETR); | ^ | ( ) samara.cpp:719:12: note: add parentheses around left hand side expression to silence this warning 719 | if(!NumPhase == 0 && !(NumPhase == 1 && ChangePhase == 1)) samara::EvalETRETM(Evap, Tr, TrPot, ETM, ETR); | ^ | ( ) samara.cpp:651:10: warning: expression result unused [-Wunused-value] 651 | for (DateEnCours; DateEnCours < DateFinSimul; DateEnCours++) { | ^~~~~~~~~~~ samara.cpp:1040:12: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] 1040 | if(!NumPhase == 0 && !(NumPhase == 1 && ChangePhase == 1)) samara::EvalETRETM(Evap, Tr, TrPot, ETM, ETR); | ^ ~~ samara.cpp:1040:12: note: add parentheses after the '!' to evaluate the comparison first 1040 | if(!NumPhase == 0 && !(NumPhase == 1 && ChangePhase == 1)) samara::EvalETRETM(Evap, Tr, TrPot, ETM, ETR); | ^ | ( ) samara.cpp:1040:12: note: add parentheses around left hand side expression to silence this warning 1040 | if(!NumPhase == 0 && !(NumPhase == 1 && ChangePhase == 1)) samara::EvalETRETM(Evap, Tr, TrPot, ETM, ETR); | ^ | ( ) samara.cpp:1135:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] 1135 | if (crop)samara::RS_EvalSlaMitch_V2_2(SlaMax, SlaMin, AttenMitch, SumDegresDay, SDJLevee, NumPhase, DegresDuJourCor, TOpt1, TBase, | ^ samara.cpp:1133:9: note: previous statement is here 1133 | if(crop)samara::RS_EvalClumpAndLightInter_V2_1(NumPhase, KRolling, Density, PlantWidth, PlantHeight, Kdf, Lai, FractionPlantHeightSubmer, LIRkdf, LIRkdfcl, LTRkdf, LTRkdfcl); | ^ samara.cpp:964:10: warning: expression result unused [-Wunused-value] 964 | for (DateEnCours; DateEnCours < DateFinSimul; DateEnCours++) { | ^~~~~~~~~~~ samara.cpp:1371:12: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] 1371 | if(!NumPhase == 0 && !(NumPhase == 1 && ChangePhase == 1)) samara::EvalETRETM(Evap, Tr, TrPot, ETM, ETR); | ^ ~~ samara.cpp:1371:12: note: add parentheses after the '!' to evaluate the comparison first 1371 | if(!NumPhase == 0 && !(NumPhase == 1 && ChangePhase == 1)) samara::EvalETRETM(Evap, Tr, TrPot, ETM, ETR); | ^ | ( ) samara.cpp:1371:12: note: add parentheses around left hand side expression to silence this warning 1371 | if(!NumPhase == 0 && !(NumPhase == 1 && ChangePhase == 1)) samara::EvalETRETM(Evap, Tr, TrPot, ETM, ETR); | ^ | ( ) samara.cpp:1293:10: warning: expression result unused [-Wunused-value] 1293 | for (DateEnCours; DateEnCours < DateFinSimul; DateEnCours++) { | ^~~~~~~~~~~ samara.cpp:1706:17: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1706 | if ((Rg == NilValue)) { | ~~~^~~~~~~~~~~ samara.cpp:1706:17: note: remove extraneous parentheses around the comparison to silence this warning 1706 | if ((Rg == NilValue)) { | ~ ^ ~ samara.cpp:1706:17: note: use '=' to turn this equality comparison into an assignment 1706 | if ((Rg == NilValue)) { | ^~ | = samara.cpp:1726:21: warning: explicitly assigning value of variable of type 'double' to itself [-Wself-assign] 1726 | VPDCalc = VPDCalc; | ~~~~~~~ ^ ~~~~~~~ samara.cpp:1728:18: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1728 | if ((ETP == NilValue)) { | ~~~~^~~~~~~~~~~ samara.cpp:1728:18: note: remove extraneous parentheses around the comparison to silence this warning 1728 | if ((ETP == NilValue)) { | ~ ^ ~ samara.cpp:1728:18: note: use '=' to turn this equality comparison into an assignment 1728 | if ((ETP == NilValue)) { | ^~ | = samara.cpp:1779:21: warning: explicitly assigning value of variable of type 'double' to itself [-Wself-assign] 1779 | VPDCalc = VPDCalc; | ~~~~~~~ ^ ~~~~~~~ samara.cpp:1781:18: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 1781 | if ((ETP == NilValue)) { | ~~~~^~~~~~~~~~~ samara.cpp:1781:18: note: remove extraneous parentheses around the comparison to silence this warning 1781 | if ((ETP == NilValue)) { | ~ ^ ~ samara.cpp:1781:18: note: use '=' to turn this equality comparison into an assignment 1781 | if ((ETP == NilValue)) { | ^~ | = In file included from samara.cpp:1: In file included from ./samara.h:4: ./samara_defines.h:19:20: warning: unused function 'FloatToStr' [-Wunused-function] 19 | static std::string FloatToStr(double val) { | ^~~~~~~~~~ 17 warnings generated. clang++-18 -std=gnu++11 -shared -L/home/hornik/tmp/R/lib -Wl,-O1 -o samara.so RcppExports.o rcpp_samara.o samara.o -llapack -L/home/hornik/tmp/R/lib -lRblas -L/usr/lib/llvm-18/lib -lFortran_main -lFortranRuntime -lFortranDecimal -lm -L/home/hornik/tmp/R/lib -lR installing to /srv/hornik/tmp/CRAN/samara.Rcheck/00LOCK-samara/00new/samara/libs ** R ** byte-compile and prepare package for lazy loading ** help No man pages found in package ‘samara’ *** installing help indices ** building package indices ** 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 (samara)