CRAN Package Check Results for Maintainer ‘Andre M. de Roos <A.M.deRoos at uva.nl>’

Last updated on 2021-12-08 19:52:01 CET.

Package ERROR NOTE OK
PSPManalysis 1 3 10

Package PSPManalysis

Current CRAN status: ERROR: 1, NOTE: 3, OK: 10

Version: 0.3.7
Check: tests
Result: ERROR
     Running 'testthat.R'
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(PSPManalysis)
    
     Welcome to the PSPManalysis package (version 0.3.7) for anlyzing
     physiologically structured population models
    
     Explore the demos (shown by demo(package="PSPManalysis") to get an overview
     Also check out the help pages of the exported functions:
    
     PSPMdemo, PSPMecodyn, PSPMequi, PSPMevodyn, PSPMind, PSPMclean, PSPMhelp, csbread and showpspm
    
     For detailed information consult the manual using PSPMhelp()
    
     >
     > test_check("PSPManalysis")
    
     Building executable Medflydemo.dll using sources from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C ...
    
    
     gcc -I"C:/r_packages/rinst/include" -DNDEBUG -I"C:/r_packages/x86_64-w64-mingw32.static.posix/include" -DR_PACKAGE -Wno-array-bounds -I. -I"C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C" -DRFUNCTIONS=0 -DPROBLEMHEADER="Medfly.h" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fexceptions -c PSPMdemo.c -o PSPMdemo.o
    
    
     gcc -I"C:/r_packages/rinst/include" -DNDEBUG -I"C:/r_packages/x86_64-w64-mingw32.static.posix/include" -DR_PACKAGE -Wno-array-bounds -I. -I"C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C" -DRFUNCTIONS=0 -DPROBLEMHEADER="Medfly.h" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fexceptions -c biftest.c -o biftest.o
    
    
     gcc -I"C:/r_packages/rinst/include" -DNDEBUG -I"C:/r_packages/x86_64-w64-mingw32.static.posix/include" -DR_PACKAGE -Wno-array-bounds -I. -I"C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C" -DRFUNCTIONS=0 -DPROBLEMHEADER="Medfly.h" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fexceptions -c curve.c -o curve.o
    
    
     gcc -I"C:/r_packages/rinst/include" -DNDEBUG -I"C:/r_packages/x86_64-w64-mingw32.static.posix/include" -DR_PACKAGE -Wno-array-bounds -I. -I"C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C" -DRFUNCTIONS=0 -DPROBLEMHEADER="Medfly.h" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fexceptions -c io.c -o io.o
    
    
     gcc -shared -s -static-libgcc -o Medflydemo.dll tmp.def PSPMdemo.o biftest.o curve.o io.o -LC:/r_packages/rinst/bin/x64 -lRlapack -LC:/r_packages/rinst/bin/x64 -lRblas -LC:/r_packages/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/r_packages/x86_64-w64-mingw32.static.posix/lib -LC:/r_packages/rinst/bin/x64 -lR
    
     Compilation of Medflydemo.dll succeeded!
    
     #
     # Executing : PSPMdemo("Medfly", NULL, NULL, NULL)
     #
     # Parameter values :
     #
     # Beta0 : 47 Beta1 : 0.04 AJ : 11
     # Mu0 : 0.00095 Mu1 : 0.0581
     #
     # 1:PGR[0] 2:Tc[0] 3:S[0][0] 4:S[0][1] 5:S[0][2] 6:S[0][3] 7:S[0][4]
     #
     0.41905662 13.16725978 0.00161586 -0.16459366 -0.03198198 -1.52635957 -0.01132532
    
    
     Dynamic library file Medflydemo.dll is up-to-date
     1.11000000E+01, 4.15884247E-01
     1.13000000E+01, 4.09690681E-01
     1.15000000E+01, 4.03690556E-01
     1.17000000E+01, 3.97874665E-01
     1.19000000E+01, 3.92234383E-01
     1.21000000E+01, 3.86761623E-01
     1.23000000E+01, 3.81448796E-01
     1.25000000E+01, 3.76288768E-01
     1.27000000E+01, 3.71274831E-01
     1.29000000E+01, 3.66400668E-01
     1.31000000E+01, 3.61660328E-01
     1.33000000E+01, 3.57048196E-01
     1.35000000E+01, 3.52558970E-01
     1.37000000E+01, 3.48187643E-01
     1.39000000E+01, 3.43929477E-01
     1.41000000E+01, 3.39779991E-01
     1.43000000E+01, 3.35734936E-01
     1.45000000E+01, 3.31790290E-01
     1.47000000E+01, 3.27942233E-01
     1.49000000E+01, 3.24187141E-01
     1.51000000E+01, 3.20521571E-01
     1.53000000E+01, 3.16942250E-01
     1.55000000E+01, 3.13446063E-01
     1.57000000E+01, 3.10030048E-01
     1.59000000E+01, 3.06691382E-01
     1.61000000E+01, 3.03427374E-01
     1.63000000E+01, 3.00235459E-01
     1.65000000E+01, 2.97113189E-01
     1.67000000E+01, 2.94058227E-01
     1.69000000E+01, 2.91068340E-01
     1.71000000E+01, 2.88141394E-01
     1.73000000E+01, 2.85275350E-01
     1.75000000E+01, 2.82468254E-01
     1.77000000E+01, 2.79718238E-01
     1.79000000E+01, 2.77023512E-01
     1.81000000E+01, 2.74382360E-01
     1.83000000E+01, 2.71793139E-01
     1.85000000E+01, 2.69254271E-01
     1.87000000E+01, 2.66764244E-01
     1.89000000E+01, 2.64321605E-01
     1.91000000E+01, 2.61924958E-01
     1.93000000E+01, 2.59572963E-01
     1.95000000E+01, 2.57264332E-01
     1.97000000E+01, 2.54997825E-01
     1.99000000E+01, 2.52772251E-01
    
    
     Deleting all executables in current and temporary directory
     Deleting all PSPManalysis result files in current directory
    
    
     Building executable PNAS2002equi.dll using sources from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C ...
    
    
     gcc -I"C:/r_packages/rinst/include" -DNDEBUG -I"C:/r_packages/x86_64-w64-mingw32.static.posix/include" -DR_PACKAGE -Wno-array-bounds -I. -I"C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C" -DRFUNCTIONS=0 -DPROBLEMHEADER="PNAS2002.h" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fexceptions -c PSPMequi.c -o PSPMequi.o
    
    
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h: In function 'LifeHistory':
    
    
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:247:27: warning: implicit declaration of function 'CohortLimit' [-Wimplicit-function-declaration]
     247 | CohortLims[p] = CohortLimit(curBirthState, p);
     | ^~~~~~~~~~~
    
    
     PSPMequi.c: In function 'Equation':
    
    
     PSPMequi.c:274:20: warning: implicit declaration of function 'AllocateHeapMemory' [-Wimplicit-function-declaration]
     274 | retval = AllocateHeapMemory();
     | ^~~~~~~~~~~~~~~~~~
    
    
     PSPMequi.c:280:7: warning: implicit declaration of function 'FreeHeapMemory' [-Wimplicit-function-declaration]
     280 | FreeHeapMemory();
     | ^~~~~~~~~~~~~~
    
    
     PSPMequi.c:367:63: warning: implicit declaration of function 'FinalIstatePnt'; did you mean 'IstatePnt'? [-Wimplicit-function-declaration]
     367 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~
     | IstatePnt
    
    
     PSPMequi.c:367:63: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     367 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
     PSPMequi.c:369:22: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion]
     369 | memcpy(FinalIstatePnt(b, PopulationNr, 0), FinalIstatePnt(b, PIPEVOIndex, 0), (CohortDim + BirthStateNr[PIPEVOIndex])*sizeof(double));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:48,
     from PSPMequi.c:47:
     C:/r_packages/x86_64-w64-mingw32.static.posix/include/string.h:50:45: note: expected 'void * restrict' but argument is of type 'int'
     50 | void * __cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
     | ~~~~~~~~~~~~~~~~~~~~^~~~
     PSPMequi.c:369:58: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion]
     369 | memcpy(FinalIstatePnt(b, PopulationNr, 0), FinalIstatePnt(b, PIPEVOIndex, 0),
    
     369 | memcpy(FinalIstatePnt(b, PopulationNr, 0), FinalIstatePnt(b, PIPEVOIndex, 0), (CohortDim + BirthStateNr[PIPEVOIndex])*sizeof(double));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:48,
     from PSPMequi.c:47:
     C:/r_packages/x86_64-w64-mingw32.static.posix/include/string.h:50:76: note: expected 'const void * restrict' but argument is of type 'int'
     50 | void * __cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
     PSPMequi.c:401:57: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     401 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
    
    
     PSPMequi.c:420:19: warning: implicit declaration of function 'FinalIstate' [-Wimplicit-function-declaration]
     420 | R0[p] = FinalIstate(0, p, CohortDim);
     | ^~~~~~~~~~~
     PSPMequi.c:425:29: error: lvalue required as left operand of assignment
     425 | CohortLimit(0, p) = (FinalIstate(0, p, SortIndex) - BirthState(p, 0, SortIndex))/COHORT_NR;
     | ^
     PSPMequi.c:487:67: error: lvalue required as left operand of assignment
     487 | for (b = 0; b < BirthStateNr[p]; b++) CohortLimit(b, p) = (FinalIstate(b, p, SortIndex) - BirthState(p, b, SortIndex))/COHORT_NR;
     | ^
     PSPMequi.c:508:53: warning: passing argument 2 of 'SUM' makes pointer from integer without a cast [-Wint-conversion]
     508 | STDOUT("%15.6G", SUM(BirthStateNr[p], FinalIstatePnt(b, p, CohortDim), 1));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:47:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:498:34: note: expected 'double *' but argument is of type 'int'
     498 | INLINE double SUM(int a, double *b, int c)
     | ~~~~~~~~^
    
    
     At top level:
    
    
     PSPMequi.c:130:16: warning: 'CohortLimitMem' defined but not used [-Wunused-variable]
     130 | static double *CohortLimitMem = NULL;
     | ^~~~~~~~~~~~~~
     PSPMequi.c:123:36: warning: 'RightEigenvecMem' defined but not used [-Wunused-variable]
     123 | static double *RightEigenvecMem = NULL;
     | ^~~~~~~~~~~~~~~~
     PSPMequi.c:119:35: warning: 'LastMemAllocated' defined but not used [-Wunused-variable]
     119 | static int LastMemAllocated = 0;
     | ^~~~~~~~~~~~~~~~
    
    
     make: *** [C:/r_packages/rinst/etc/x64/Makeconf:252: PSPMequi.o] Error 1
    
     gcc -I"C:/r_packages/rinst/include" -DNDEBUG -I"C:/r_packages/x86_64-w64-mingw32.static.posix/include" -DR_PACKAGE -Wno-array-bounds -I. -I"C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C" -DRFUNCTIONS=0 -DPROBLEMHEADER="PNAS2002.h" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fexceptions -c PSPMequi.c -o PSPMequi.o
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h: In function 'LifeHistory':
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:247:27: warning: implicit declaration of function 'CohortLimit' [-Wimplicit-function-declaration]
     247 | CohortLims[p] = CohortLimit(curBirthState, p);
     | ^~~~~~~~~~~
     PSPMequi.c: In function 'Equation':
     PSPMequi.c:274:20: warning: implicit declaration of function 'AllocateHeapMemory' [-Wimplicit-function-declaration]
     274 | retval = AllocateHeapMemory();
     | ^~~~~~~~~~~~~~~~~~
     PSPMequi.c:280:7: warning: implicit declaration of function 'FreeHeapMemory' [-Wimplicit-function-declaration]
     280 | FreeHeapMemory();
     | ^~~~~~~~~~~~~~
     PSPMequi.c:367:63: warning: implicit declaration of function 'FinalIstatePnt'; did you mean 'IstatePnt'? [-Wimplicit-function-declaration]
     367 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~
     | IstatePnt
     PSPMequi.c:367:63: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     367 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
     PSPMequi.c:369:22: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion]
     369 | memcpy(FinalIstatePnt(b, PopulationNr, 0), FinalIstatePnt(b, PIPEVOIndex, 0), (CohortDim + BirthStateNr[PIPEVOIndex])*sizeof(double));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:48,
     from PSPMequi.c:47:
     C:/r_packages/x86_64-w64-mingw32.static.posix/include/string.h:50:45: note: expected 'void * restrict' but argument is of type 'int'
     50 | void * __cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
     | ~~~~~~~~~~~~~~~~~~~~^~~~
     PSPMequi.c:369:58: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion]
     369 | memcpy(FinalIstatePnt(b, PopulationNr, 0), FinalIstatePnt(b, PIPEVOIndex, 0), (CohortDim + BirthStateNr[PIPEVOIndex])*sizeof(double));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:48,
     from PSPMequi.c:47:
     C:/r_packages/x86_64-w64-mingw32.static.posix/include/string.h:50:76: note: expected 'const void * restrict' but argument is of type 'int'
     50 | void * __cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
     PSPMequi.c:401:57: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     401 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
     PSPMequi.c:420:19: warning: implicit declaration of function 'FinalIstate' [-Wimplicit-function-declaration]
     420 | R0[p] = FinalIstate(0, p, CohortDim);
     | ^~~~~~~~~~~
     PSPMequi.c:425:29: error: lvalue required as left operand of assignment
     425 | CohortLimit(0, p) = (FinalIstate(0, p, SortIndex) - BirthState(p, 0, SortIndex))/COHORT_NR;
     | ^
     PSPMequi.c:487:67: error: lvalue required as left operand of assignment
     487 | for (b = 0; b < BirthStateNr[p]; b++) CohortLimit(b, p) = (FinalIstate(b, p, SortIndex) - BirthState(p, b, SortIndex))/COHORT_NR;
     | ^
     PSPMequi.c:508:53: warning: passing argument 2 of 'SUM' makes pointer from integer without a cast [-Wint-conversion]
     508 | STDOUT("%15.6G", SUM(BirthStateNr[p], FinalIstatePnt(b, p, CohortDim), 1));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:47:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:498:34: note: expected 'double *' but argument is of type 'int'
     498 | INLINE double SUM(int a, double *b, int c)
     | ~~~~~~~~^
     At top level:
     PSPMequi.c:130:16: warning: 'CohortLimitMem' defined but not used [-Wunused-variable]
     130 | static double *CohortLimitMem = NULL;
     | ^~~~~~~~~~~~~~
     PSPMequi.c:123:36: warning: 'RightEigenvecMem' defined but not used [-Wunused-variable]
     123 | static double *RightEigenvecMem = NULL;
     | ^~~~~~~~~~~~~~~~
     PSPMequi.c:119:35: warning: 'LastMemAllocated' defined but not used [-Wunused-variable]
     119 | static int LastMemAllocated = 0;
     | ^~~~~~~~~~~~~~~~
     make: *** [C:/r_packages/rinst/etc/x64/Makeconf:252: PSPMequi.o] Error 1
    
    
    
     Detection of the ESS value of the bifurcation parameter of the structured population (ingestion exponent)
    
    
     Building executable Indet_growthequi.dll using sources from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C ...
    
    
     gcc -I"C:/r_packages/rinst/include" -DNDEBUG -I"C:/r_packages/x86_64-w64-mingw32.static.posix/include" -DR_PACKAGE -Wno-array-bounds -I. -I"C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C" -DRFUNCTIONS=0 -DPROBLEMHEADER="Indet_growth.h" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fexceptions -c PSPMequi.c -o PSPMequi.o
    
    
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h: In function 'LifeHistory':
    
    
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:247:27: warning: implicit declaration of function 'CohortLimit' [-Wimplicit-function-declaration]
     247 | CohortLims[p] = CohortLimit(curBirthState, p);
     | ^~~~~~~~~~~
    
    
     PSPMequi.c: In function 'Equation':
    
    
     PSPMequi.c:274:20: warning: implicit declaration of function 'AllocateHeapMemory' [-Wimplicit-function-declaration]
     274 | retval = AllocateHeapMemory();
     | ^~~~~~~~~~~~~~~~~~
    
    
     PSPMequi.c:280:7: warning: implicit declaration of function 'FreeHeapMemory' [-Wimplicit-function-declaration]
     280 | FreeHeapMemory();
     | ^~~~~~~~~~~~~~
    
    
     PSPMequi.c:367:63: warning: implicit declaration of function 'FinalIstatePnt'; did you mean 'IstatePnt'? [-Wimplicit-function-declaration]
     367 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~
     | IstatePnt
    
    
     PSPMequi.c:367:63: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     367 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
     PSPMequi.c:369:22: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion]
     369 | memcpy(FinalIstatePnt(b, PopulationNr, 0), FinalIstatePnt(b, PIPEVOIndex, 0), (CohortDim + BirthStateNr[PIPEVOIndex])*sizeof(double));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:48,
     from PSPMequi.c:47:
     C:/r_packages/x86_64-w64-mingw32.static.posix/include/string.h:50:45: note: expected 'void * restrict' but argument is of type 'int'
     50 | void * __cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
     | ~~~~~~~~~~~~~~~~~~~~^~~~
     PSPMequi.c:369:58: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion]
     369 | memcpy(FinalIstatePnt(b, PopulationNr, 0), FinalIstatePnt(b, PIPEVOIndex, 0),
    
     369 | memcpy(FinalIstatePnt(b, PopulationNr, 0), FinalIstatePnt(b, PIPEVOIndex, 0), (CohortDim + BirthStateNr[PIPEVOIndex])*sizeof(double));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:48,
     from PSPMequi.c:47:
     C:/r_packages/x86_64-w64-mingw32.static.posix/include/string.h:50:76: note: expected 'const void * restrict' but argument is of type 'int'
     50 | void * __cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
     PSPMequi.c:401:57: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     401 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
    
    
     PSPMequi.c:420:19: warning: implicit declaration of function 'FinalIstate' [-Wimplicit-function-declaration]
     420 | R0[p] = FinalIstate(0, p, CohortDim);
     | ^~~~~~~~~~~
     PSPMequi.c:425:29: error: lvalue required as left operand of assignment
     425 | CohortLimit(0, p) = (FinalIstate(0, p, SortIndex) - BirthState(p, 0, SortIndex))/COHORT_NR;
     | ^
     PSPMequi.c:487:67: error: lvalue required as left operand of assignment
     487 | for (b = 0; b < BirthStateNr[p]; b++) CohortLimit(b, p) = (FinalIstate(b, p, SortIndex) - BirthState(p, b, SortIndex))/COHORT_NR;
     | ^
     PSPMequi.c:508:53: warning: passing argument 2 of 'SUM' makes pointer from integer without a cast [-Wint-conversion]
     508 | STDOUT("%15.6G", SUM(BirthStateNr[p], FinalIstatePnt(b, p, CohortDim), 1));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:47:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:498:34: note: expected 'double *' but argument is of type 'int'
     498 | INLINE double SUM(int a, double *b, int c)
     | ~~~~~~~~^
    
    
     At top level:
    
    
     PSPMequi.c:130:16: warning: 'CohortLimitMem' defined but not used [-Wunused-variable]
     130 | static double *CohortLimitMem = NULL;
     | ^~~~~~~~~~~~~~
     PSPMequi.c:123:36: warning: 'RightEigenvecMem' defined but not used [-Wunused-variable]
     123 | static double *RightEigenvecMem = NULL;
     | ^~~~~~~~~~~~~~~~
     PSPMequi.c:119:35: warning: 'LastMemAllocated' defined but not used [-Wunused-variable]
     119 | static int LastMemAllocated = 0;
     | ^~~~~~~~~~~~~~~~
    
    
     make: *** [C:/r_packages/rinst/etc/x64/Makeconf:252: PSPMequi.o] Error 1
    
     gcc -I"C:/r_packages/rinst/include" -DNDEBUG -I"C:/r_packages/x86_64-w64-mingw32.static.posix/include" -DR_PACKAGE -Wno-array-bounds -I. -I"C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C" -DRFUNCTIONS=0 -DPROBLEMHEADER="Indet_growth.h" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fexceptions -c PSPMequi.c -o PSPMequi.o
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h: In function 'LifeHistory':
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:247:27: warning: implicit declaration of function 'CohortLimit' [-Wimplicit-function-declaration]
     247 | CohortLims[p] = CohortLimit(curBirthState, p);
     | ^~~~~~~~~~~
     PSPMequi.c: In function 'Equation':
     PSPMequi.c:274:20: warning: implicit declaration of function 'AllocateHeapMemory' [-Wimplicit-function-declaration]
     274 | retval = AllocateHeapMemory();
     | ^~~~~~~~~~~~~~~~~~
     PSPMequi.c:280:7: warning: implicit declaration of function 'FreeHeapMemory' [-Wimplicit-function-declaration]
     280 | FreeHeapMemory();
     | ^~~~~~~~~~~~~~
     PSPMequi.c:367:63: warning: implicit declaration of function 'FinalIstatePnt'; did you mean 'IstatePnt'? [-Wimplicit-function-declaration]
     367 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~
     | IstatePnt
     PSPMequi.c:367:63: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     367 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
     PSPMequi.c:369:22: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion]
     369 | memcpy(FinalIstatePnt(b, PopulationNr, 0), FinalIstatePnt(b, PIPEVOIndex, 0), (CohortDim + BirthStateNr[PIPEVOIndex])*sizeof(double));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:48,
     from PSPMequi.c:47:
     C:/r_packages/x86_64-w64-mingw32.static.posix/include/string.h:50:45: note: expected 'void * restrict' but argument is of type 'int'
     50 | void * __cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
     | ~~~~~~~~~~~~~~~~~~~~^~~~
     PSPMequi.c:369:58: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion]
     369 | memcpy(FinalIstatePnt(b, PopulationNr, 0), FinalIstatePnt(b, PIPEVOIndex, 0), (CohortDim + BirthStateNr[PIPEVOIndex])*sizeof(double));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:48,
     from PSPMequi.c:47:
     C:/r_packages/x86_64-w64-mingw32.static.posix/include/string.h:50:76: note: expected 'const void * restrict' but argument is of type 'int'
     50 | void * __cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
     PSPMequi.c:401:57: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     401 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:183:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
     PSPMequi.c:420:19: warning: implicit declaration of function 'FinalIstate' [-Wimplicit-function-declaration]
     420 | R0[p] = FinalIstate(0, p, CohortDim);
     | ^~~~~~~~~~~
     PSPMequi.c:425:29: error: lvalue required as left operand of assignment
     425 | CohortLimit(0, p) = (FinalIstate(0, p, SortIndex) - BirthState(p, 0, SortIndex))/COHORT_NR;
     | ^
     PSPMequi.c:487:67: error: lvalue required as left operand of assignment
     487 | for (b = 0; b < BirthStateNr[p]; b++) CohortLimit(b, p) = (FinalIstate(b, p, SortIndex) - BirthState(p, b, SortIndex))/COHORT_NR;
     | ^
     PSPMequi.c:508:53: warning: passing argument 2 of 'SUM' makes pointer from integer without a cast [-Wint-conversion]
     508 | STDOUT("%15.6G", SUM(BirthStateNr[p], FinalIstatePnt(b, p, CohortDim), 1));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMequi.c:47:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:498:34: note: expected 'double *' but argument is of type 'int'
     498 | INLINE double SUM(int a, double *b, int c)
     | ~~~~~~~~^
     At top level:
     PSPMequi.c:130:16: warning: 'CohortLimitMem' defined but not used [-Wunused-variable]
     130 | static double *CohortLimitMem = NULL;
     | ^~~~~~~~~~~~~~
     PSPMequi.c:123:36: warning: 'RightEigenvecMem' defined but not used [-Wunused-variable]
     123 | static double *RightEigenvecMem = NULL;
     | ^~~~~~~~~~~~~~~~
     PSPMequi.c:119:35: warning: 'LastMemAllocated' defined but not used [-Wunused-variable]
     119 | static int LastMemAllocated = 0;
     | ^~~~~~~~~~~~~~~~
     make: *** [C:/r_packages/rinst/etc/x64/Makeconf:252: PSPMequi.o] Error 1
    
     Building executable PNAS2002_5bsind.dll using sources from C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C ...
    
    
     gcc -I"C:/r_packages/rinst/include" -DNDEBUG -I"C:/r_packages/x86_64-w64-mingw32.static.posix/include" -DR_PACKAGE -Wno-array-bounds -I. -I"C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C" -DRFUNCTIONS=0 -DPROBLEMHEADER="PNAS2002_5bs.h" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fexceptions -c PSPMind.c -o PSPMind.o
    
    
     In file included from PSPMind.c:132:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h: In function 'LifeHistory':
    
    
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:247:27: warning: implicit declaration of function 'CohortLimit' [-Wimplicit-function-declaration]
     247 | CohortLims[p] = CohortLimit(curBirthState, p);
     | ^~~~~~~~~~~
    
    
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:693:37: error: lvalue required as left operand of assignment
     693 | CohortLimit(curBirthState, p) = (Istate(p, SortIndex) - Bstates[p][SortIndex])/COHORT_NR;
     | ^
    
    
     PSPMind.c: In function 'Equation':
    
    
     PSPMind.c:163:20: warning: implicit declaration of function 'AllocateHeapMemory' [-Wimplicit-function-declaration]
     163 | retval = AllocateHeapMemory();
     | ^~~~~~~~~~~~~~~~~~
    
    
     PSPMind.c:169:7: warning: implicit declaration of function 'FreeHeapMemory' [-Wimplicit-function-declaration]
     169 | FreeHeapMemory();
     | ^~~~~~~~~~~~~~
    
    
     PSPMind.c:192:53: warning: implicit declaration of function 'FinalIstatePnt'; did you mean 'IstatePnt'? [-Wimplicit-function-declaration]
     192 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~
     | IstatePnt
    
    
     PSPMind.c:192:53: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     192 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMind.c:132:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
     PSPMind.c:215:53: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     215 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMind.c:132:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
    
    
     PSPMind.c:234:19: warning: implicit declaration of function 'FinalIstate' [-Wimplicit-function-declaration]
     234 | R0[p] = FinalIstate(0, p, IStateDim + 1);
     | ^~~~~~~~~~~
     PSPMind.c:295:49: warning: passing argument 2 of 'SUM' makes pointer from integer without a cast [-Wint-conversion]
     295 | STDOUT("%15.6G", SUM(BirthStateNr[p], FinalIstatePnt(b, p, (IStateDim + 1)), 1));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMind.c:47:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:498:34: note: expected 'double *' but argument is of type 'int'
     498 | INLINE double SUM(int a, double *b, int c)
     | ~~~~~~~~^
    
    
     At top level:
    
    
     PSPMind.c:105:36: warning: 'CohortLimitMem' defined but not used [-Wunused-variable]
     105 | static double *CohortLimitMem = NULL;
     | ^~~~~~~~~~~~~~
     PSPMind.c:100:36: warning: 'RightEigenvecMem' defined but not used [-Wunused-variable]
     100 | static double *RightEigenvecMem = NULL;
     | ^~~~~~~~~~~~~~~~
     PSPMind.c:97:35: warning: 'LastMemAllocated' defined but not used [-Wunused-variable]
     97 | static int LastMemAllocated = 0;
     | ^~~~~~~~~~~~~~~~
    
    
     make: *** [C:/r_packages/rinst/etc/x64/Makeconf:252: PSPMind.o] Error 1
    
     gcc -I"C:/r_packages/rinst/include" -DNDEBUG -I"C:/r_packages/x86_64-w64-mingw32.static.posix/include" -DR_PACKAGE -Wno-array-bounds -I. -I"C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C" -DRFUNCTIONS=0 -DPROBLEMHEADER="PNAS2002_5bs.h" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -fexceptions -c PSPMind.c -o PSPMind.o
     In file included from PSPMind.c:132:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h: In function 'LifeHistory':
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:247:27: warning: implicit declaration of function 'CohortLimit' [-Wimplicit-function-declaration]
     247 | CohortLims[p] = CohortLimit(curBirthState, p);
     | ^~~~~~~~~~~
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:693:37: error: lvalue required as left operand of assignment
     693 | CohortLimit(curBirthState, p) = (Istate(p, SortIndex) - Bstates[p][SortIndex])/COHORT_NR;
     | ^
     PSPMind.c: In function 'Equation':
     PSPMind.c:163:20: warning: implicit declaration of function 'AllocateHeapMemory' [-Wimplicit-function-declaration]
     163 | retval = AllocateHeapMemory();
     | ^~~~~~~~~~~~~~~~~~
     PSPMind.c:169:7: warning: implicit declaration of function 'FreeHeapMemory' [-Wimplicit-function-declaration]
     169 | FreeHeapMemory();
     | ^~~~~~~~~~~~~~
     PSPMind.c:192:53: warning: implicit declaration of function 'FinalIstatePnt'; did you mean 'IstatePnt'? [-Wimplicit-function-declaration]
     192 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~
     | IstatePnt
     PSPMind.c:192:53: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     192 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMind.c:132:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
     PSPMind.c:215:53: warning: passing argument 4 of 'LifeHistory' makes pointer from integer without a cast [-Wint-conversion]
     215 | if (!LifeHistory(BirthStateNr, b, MaxCohortDim, FinalIstatePnt(b, 0, 0))) retval = FAILURE;
     | ^~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMind.c:132:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/dopri5.h:149:99: note: expected 'double *' but argument is of type 'int'
     149 | int LifeHistory(const int *birthStateNr, const int curBirthState, const int maxCohortDim, double *iStateOut)
     | ~~~~~~~~^~~~~~~~~
     PSPMind.c:234:19: warning: implicit declaration of function 'FinalIstate' [-Wimplicit-function-declaration]
     234 | R0[p] = FinalIstate(0, p, IStateDim + 1);
     | ^~~~~~~~~~~
     PSPMind.c:295:49: warning: passing argument 2 of 'SUM' makes pointer from integer without a cast [-Wint-conversion]
     295 | STDOUT("%15.6G", SUM(BirthStateNr[p], FinalIstatePnt(b, p, (IStateDim + 1)), 1));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | |
     | int
     In file included from PSPMind.c:47:
     C:\r_packages\pkgcheck\CRAN\PSPManalysis\PSPManalysis.Rcheck\PSPManalysis\C/globals.h:498:34: note: expected 'double *' but argument is of type 'int'
     498 | INLINE double SUM(int a, double *b, int c)
     | ~~~~~~~~^
     At top level:
     PSPMind.c:105:36: warning: 'CohortLimitMem' defined but not used [-Wunused-variable]
     105 | static double *CohortLimitMem = NULL;
     | ^~~~~~~~~~~~~~
     PSPMind.c:100:36: warning: 'RightEigenvecMem' defined but not used [-Wunused-variable]
     100 | static double *RightEigenvecMem = NULL;
     | ^~~~~~~~~~~~~~~~
     PSPMind.c:97:35: warning: 'LastMemAllocated' defined but not used [-Wunused-variable]
     97 | static int LastMemAllocated = 0;
     | ^~~~~~~~~~~~~~~~
     make: *** [C:/r_packages/rinst/etc/x64/Makeconf:252: PSPMind.o] Error 1
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (???): (code run outside of `test_that()`) ────────────────────────────
     Error in `buildSO("PSPMequi", modelname, debug, force, silent)`:
     Compilation of PNAS2002equi.dll failed!
    
     Backtrace:
     █
     1. └─PSPManalysis::PSPMequi(...)
     2. └─PSPManalysis:::buildSO("PSPMequi", modelname, debug, force, silent)
     ── Error (???): (code run outside of `test_that()`) ────────────────────────────
     Error in `buildSO("PSPMequi", modelname, debug, force, silent)`:
     Compilation of Indet_growthequi.dll failed!
    
     Backtrace:
     █
     1. └─PSPManalysis::PSPMequi(...)
     2. └─PSPManalysis:::buildSO("PSPMequi", modelname, debug, force, silent)
     ── Error (test.04-PNAS2002_5bsind.R:3:1): (code run outside of `test_that()`) ──
     Error in `buildSO("PSPMind", modelname, debug, force, silent)`:
     Compilation of PNAS2002_5bsind.dll failed!
    
     Backtrace:
     █
     1. └─PSPManalysis::PSPMind(...) test.04-PNAS2002_5bsind.R:3:0
     2. └─PSPManalysis:::buildSO("PSPMind", modelname, debug, force, silent)
    
     [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-x86_64-new-TK

Version: 0.3.4
Check: LazyData
Result: NOTE
     'LazyData' is specified without a 'data' directory
Flavors: r-devel-windows-x86_64-old, r-patched-linux-x86_64, r-release-linux-x86_64