Running 'testthat.R' [169s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(mkin)
  > 
  > test_check("mkin")
  
  ERROR(s) during compilation: source code errors or compiler configuration errors!
  make cmd is
    make -f "D:/RCompile/recent/R-4.5.2p/etc/x64/Makeconf" -f "D:/RCompile/recent/R-4.5.2p/share/make/winshlib.mk" SHLIB="filed8dccd65344.dll" WIN=64 TCLBIN= OBJECTS="filed8dccd65344.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_03_06_11_10_10_4045/Rtmpwn4Wwh'
  gcc  -I"D:/RCompile/recent/R-4.5.2p/include" -DNDEBUG -DR_NO_REMAP    -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"      -pedantic -Wstrict-prototypes -O2 -Wall -std=gnu2x  -mfpmath=sse -msse2 -mstackrealign   -c filed8dccd65344.c -o filed8dccd65344.o
  if test "zfiled8dccd65344.o" != "z"; then \
    if test -e "filed8dccd65344-win.def"; then \
      echo gcc   -shared -s -static-libgcc -o filed8dccd65344.dll filed8dccd65344-win.def filed8dccd65344.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      gcc   -shared -s -static-libgcc -o filed8dccd65344.dll filed8dccd65344-win.def filed8dccd65344.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      nm filed8dccd65344.o | sed -n 's/^.* [BCDRT] / /p' | sed -e '/[.]refptr[.]/d' -e '/[.]weak[.]/d' | sed 's/[^ ][^ ]*/"&"/g'  >> tmp.def; \
      echo gcc   -shared -s -static-libgcc -o filed8dccd65344.dll tmp.def filed8dccd65344.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      gcc   -shared -s -static-libgcc -o filed8dccd65344.dll tmp.def filed8dccd65344.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/2026_03_06_11_10_10_4045/Rtmpwn4Wwh'
  
  Program source:
    1: #include <R.h>
    2: 
    3: 
    4: static double parms [3];
    5: #define k_parent_sink parms[0]
    6: #define k_parent_m1 parms[1]
    7: #define k_m1_sink parms[2]
    8: 
    9: void initpar(void (* odeparms)(int *, double *)) {
   10:     int N = 3;
   11:     odeparms(&N, parms);
   12: }
   13: 
   14: 
   15: void diffs ( int * n, double * t, double * y, double * f, double * rpar, int * ipar ) {
   16: 
   17: f[0] = - k_parent_sink * y[0] - k_parent_m1 * y[0];
   18: f[1] = + k_parent_m1 * y[0] - k_m1_sink * y[1];
   19: }
  
  Compilation ERROR, function(s)/method(s) not created!
  
  ERROR(s) during compilation: source code errors or compiler configuration errors!
  make cmd is
    make -f "D:/RCompile/recent/R-4.5.2p/etc/x64/Makeconf" -f "D:/RCompile/recent/R-4.5.2p/share/make/winshlib.mk" SHLIB="filed8dc138713cb.dll" WIN=64 TCLBIN= OBJECTS="filed8dc138713cb.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_03_06_11_10_10_4045/Rtmpwn4Wwh'
  gcc  -I"D:/RCompile/recent/R-4.5.2p/include" -DNDEBUG -DR_NO_REMAP    -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"      -pedantic -Wstrict-prototypes -O2 -Wall -std=gnu2x  -mfpmath=sse -msse2 -mstackrealign   -c filed8dc138713cb.c -o filed8dc138713cb.o
  if test "zfiled8dc138713cb.o" != "z"; then \
    if test -e "filed8dc138713cb-win.def"; then \
      echo gcc   -shared -s -static-libgcc -o filed8dc138713cb.dll filed8dc138713cb-win.def filed8dc138713cb.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      gcc   -shared -s -static-libgcc -o filed8dc138713cb.dll filed8dc138713cb-win.def filed8dc138713cb.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      nm filed8dc138713cb.o | sed -n 's/^.* [BCDRT] / /p' | sed -e '/[.]refptr[.]/d' -e '/[.]weak[.]/d' | sed 's/[^ ][^ ]*/"&"/g'  >> tmp.def; \
      echo gcc   -shared -s -static-libgcc -o filed8dc138713cb.dll tmp.def filed8dc138713cb.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      gcc   -shared -s -static-libgcc -o filed8dc138713cb.dll tmp.def filed8dc138713cb.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/2026_03_06_11_10_10_4045/Rtmpwn4Wwh'
  
  Program source:
    1: #include <R.h>
    2: 
    3: 
    4: static double parms [3];
    5: #define k_parent parms[0]
    6: #define f_parent_to_m1 parms[1]
    7: #define k_m1 parms[2]
    8: 
    9: void initpar(void (* odeparms)(int *, double *)) {
   10:     int N = 3;
   11:     odeparms(&N, parms);
   12: }
   13: 
   14: 
   15: void diffs ( int * n, double * t, double * y, double * f, double * rpar, int * ipar ) {
   16: 
   17: f[0] = - k_parent * y[0];
   18: f[1] = + f_parent_to_m1 * k_parent * y[0] - k_m1 * y[1];
   19: }
  
  Compilation ERROR, function(s)/method(s) not created!
  
  ERROR(s) during compilation: source code errors or compiler configuration errors!
  make cmd is
    make -f "D:/RCompile/recent/R-4.5.2p/etc/x64/Makeconf" -f "D:/RCompile/recent/R-4.5.2p/share/make/winshlib.mk" SHLIB="filed8dc1cc43dba.dll" WIN=64 TCLBIN= OBJECTS="filed8dc1cc43dba.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_03_06_11_10_10_4045/Rtmpwn4Wwh'
  gcc  -I"D:/RCompile/recent/R-4.5.2p/include" -DNDEBUG -DR_NO_REMAP    -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"      -pedantic -Wstrict-prototypes -O2 -Wall -std=gnu2x  -mfpmath=sse -msse2 -mstackrealign   -c filed8dc1cc43dba.c -o filed8dc1cc43dba.o
  if test "zfiled8dc1cc43dba.o" != "z"; then \
    if test -e "filed8dc1cc43dba-win.def"; then \
      echo gcc   -shared -s -static-libgcc -o filed8dc1cc43dba.dll filed8dc1cc43dba-win.def filed8dc1cc43dba.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      gcc   -shared -s -static-libgcc -o filed8dc1cc43dba.dll filed8dc1cc43dba-win.def filed8dc1cc43dba.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      nm filed8dc1cc43dba.o | sed -n 's/^.* [BCDRT] / /p' | sed -e '/[.]refptr[.]/d' -e '/[.]weak[.]/d' | sed 's/[^ ][^ ]*/"&"/g'  >> tmp.def; \
      echo gcc   -shared -s -static-libgcc -o filed8dc1cc43dba.dll tmp.def filed8dc1cc43dba.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      gcc   -shared -s -static-libgcc -o filed8dc1cc43dba.dll tmp.def filed8dc1cc43dba.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/2026_03_06_11_10_10_4045/Rtmpwn4Wwh'
  
  Program source:
    1: #include <R.h>
    2: 
    3: 
    4: static double parms [2];
    5: #define k_parent parms[0]
    6: #define k_m1 parms[1]
    7: 
    8: void initpar(void (* odeparms)(int *, double *)) {
    9:     int N = 2;
   10:     odeparms(&N, parms);
   11: }
   12: 
   13: 
   14: void diffs ( int * n, double * t, double * y, double * f, double * rpar, int * ipar ) {
   15: 
   16: f[0] = - k_parent * y[0];
   17: f[1] = + k_parent * y[0] - k_m1 * y[1];
   18: }
  
  Compilation ERROR, function(s)/method(s) not created!
  
  ERROR(s) during compilation: source code errors or compiler configuration errors!
  make cmd is
    make -f "D:/RCompile/recent/R-4.5.2p/etc/x64/Makeconf" -f "D:/RCompile/recent/R-4.5.2p/share/make/winshlib.mk" SHLIB="filed8dc5ba22241.dll" WIN=64 TCLBIN= OBJECTS="filed8dc5ba22241.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_03_06_11_10_10_4045/Rtmpwn4Wwh'
  gcc  -I"D:/RCompile/recent/R-4.5.2p/include" -DNDEBUG -DR_NO_REMAP    -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"      -pedantic -Wstrict-prototypes -O2 -Wall -std=gnu2x  -mfpmath=sse -msse2 -mstackrealign   -c filed8dc5ba22241.c -o filed8dc5ba22241.o
  if test "zfiled8dc5ba22241.o" != "z"; then \
    if test -e "filed8dc5ba22241-win.def"; then \
      echo gcc   -shared -s -static-libgcc -o filed8dc5ba22241.dll filed8dc5ba22241-win.def filed8dc5ba22241.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      gcc   -shared -s -static-libgcc -o filed8dc5ba22241.dll filed8dc5ba22241-win.def filed8dc5ba22241.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      nm filed8dc5ba22241.o | sed -n 's/^.* [BCDRT] / /p' | sed -e '/[.]refptr[.]/d' -e '/[.]weak[.]/d' | sed 's/[^ ][^ ]*/"&"/g'  >> tmp.def; \
      echo gcc   -shared -s -static-libgcc -o filed8dc5ba22241.dll tmp.def filed8dc5ba22241.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      gcc   -shared -s -static-libgcc -o filed8dc5ba22241.dll tmp.def filed8dc5ba22241.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/2026_03_06_11_10_10_4045/Rtmpwn4Wwh'
  
  Program source:
    1: #include <R.h>
    2: 
    3: 
    4: static double parms [4];
    5: #define alpha parms[0]
    6: #define beta parms[1]
    7: #define f_parent_to_m1 parms[2]
    8: #define k_m1 parms[3]
    9: 
   10: void initpar(void (* odeparms)(int *, double *)) {
   11:     int N = 4;
   12:     odeparms(&N, parms);
   13: }
   14: 
   15: 
   16: void diffs ( int * n, double * t, double * y, double * f, double * rpar, int * ipar ) {
   17: double time = *t;
   18: 
   19: f[0] = - (alpha/beta) * 1/((time/beta) + 1) * y[0];
   20: f[1] = + f_parent_to_m1 * (alpha/beta) * 1/((time/beta) + 1) * y[0] - k_m1 * y[1];
   21: }
  
  Compilation ERROR, function(s)/method(s) not created!
  
  ERROR(s) during compilation: source code errors or compiler configuration errors!
  make cmd is
    make -f "D:/RCompile/recent/R-4.5.2p/etc/x64/Makeconf" -f "D:/RCompile/recent/R-4.5.2p/share/make/winshlib.mk" SHLIB="filed8dc45532f7d.dll" WIN=64 TCLBIN= OBJECTS="filed8dc45532f7d.o"
  
  make would use
  make[1]: Entering directory '/d/temp/2026_03_06_11_10_10_4045/Rtmpwn4Wwh'
  gcc  -I"D:/RCompile/recent/R-4.5.2p/include" -DNDEBUG -DR_NO_REMAP    -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"      -pedantic -Wstrict-prototypes -O2 -Wall -std=gnu2x  -mfpmath=sse -msse2 -mstackrealign   -c filed8dc45532f7d.c -o filed8dc45532f7d.o
  if test "zfiled8dc45532f7d.o" != "z"; then \
    if test -e "filed8dc45532f7d-win.def"; then \
      echo gcc   -shared -s -static-libgcc -o filed8dc45532f7d.dll filed8dc45532f7d-win.def filed8dc45532f7d.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      gcc   -shared -s -static-libgcc -o filed8dc45532f7d.dll filed8dc45532f7d-win.def filed8dc45532f7d.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      nm filed8dc45532f7d.o | sed -n 's/^.* [BCDRT] / /p' | sed -e '/[.]refptr[.]/d' -e '/[.]weak[.]/d' | sed 's/[^ ][^ ]*/"&"/g'  >> tmp.def; \
      echo gcc   -shared -s -static-libgcc -o filed8dc45532f7d.dll tmp.def filed8dc45532f7d.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      gcc   -shared -s -static-libgcc -o filed8dc45532f7d.dll tmp.def filed8dc45532f7d.o  -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools45/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.5.2p/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/2026_03_06_11_10_10_4045/Rtmpwn4Wwh'
  
  Program source:
    1: #include <R.h>
    2: 
    3: 
    4: static double parms [5];
    5: #define k1 parms[0]
    6: #define k2 parms[1]
    7: #define g parms[2]
    8: #define f_parent_to_m1 parms[3]
    9: #define k_m1 parms[4]
   10: 
   11: void initpar(void (* odeparms)(int *, double *)) {
   12:     int N = 5;
   13:     odeparms(&N, parms);
   14: }
   15: 
   16: 
   17: void diffs ( int * n, double * t, double * y, double * f, double * rpar, int * ipar ) {
   18: double time = *t;
   19: 
   20: f[0] = - ((k1 * g * exp(-k1 * time) + k2 * (1 - g) * exp(-k2 * time)) / (g * exp(-k1 * time) + (1 - g) * exp(-k2 * time))) * y[0];
   21: f[1] = + f_parent_to_m1 * ((k1 * g * exp(-k1 * time) + k2 * (1 - g) * exp(-k2 * time)) / (g * exp(-k1 * time) + (1 - g) * exp(-k2 * time))) * y[0] - k_m1 * y[1];
   22: }
  
  Compilation ERROR, function(s)/method(s) not created!
  Error in is.loaded(initfunc, PACKAGE = dllname, type = "") : 
    invalid 'PACKAGE' argument