Running 'testthat.R' [175s]
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.3.3/etc/x64/Makeconf" -f "D:/RCompile/recent/R-4.3.3/share/make/winshlib.mk" SHLIB="file2f678759691e.dll" WIN=64 TCLBIN= OBJECTS="file2f678759691e.o"
  
  make would use
  make[1]: Entering directory '/d/temp/RtmpuYYktB'
  if test "zfile2f678759691e.o" != "z"; then \
    if test -e "file2f678759691e-win.def"; then \
      echo gcc  -shared -s -static-libgcc -o file2f678759691e.dll file2f678759691e-win.def file2f678759691e.o  -L"d:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools43/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.3.3/bin/x64" -lR ; \
      gcc  -shared -s -static-libgcc -o file2f678759691e.dll file2f678759691e-win.def file2f678759691e.o  -L"d:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools43/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.3.3/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      nm file2f678759691e.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 file2f678759691e.dll tmp.def file2f678759691e.o  -L"d:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools43/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.3.3/bin/x64" -lR ; \
      gcc  -shared -s -static-libgcc -o file2f678759691e.dll tmp.def file2f678759691e.o  -L"d:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools43/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R-4.3.3/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/RtmpuYYktB'
  
  Program source:
    1: #include <R.h>
    2: 
    3: 
    4: static double parms [3];
    5: #define k_DMTA parms[0]
    6: #define f_DMTA_to_M23 parms[1]
    7: #define k_M23 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_DMTA * y[0];
   18: f[1] = + f_DMTA_to_M23 * k_DMTA * y[0] - k_M23 * y[1];
   19: }
  
  Compilation ERROR, function(s)/method(s) not created!
  [ FAIL 1 | WARN 2 | SKIP 31 | PASS 117 ]
  
  ══ Skipped tests (31) ══════════════════════════════════════════════════════════
  • On CRAN (30): 'test_FOCUS_D_UBA_expertise.R:32:3',
    'test_FOCUS_chi2_error_level.R:23:3', 'test_FOCUS_chi2_error_level.R:33:3',
    'test_analytical.R:4:3', 'test_analytical.R:51:3', 'test_aw.R:4:3',
    'test_dmta.R:5:3', 'test_dmta.R:82:3', 'test_error_models.R:4:3',
    'test_error_models.R:10:3', 'test_error_models.R:16:3',
    'test_error_models.R:55:3', 'test_mhmkin.R:5:3', 'test_mixed.R:18:3',
    'test_mixed.R:26:3', 'test_mixed.R:52:3', 'test_mixed.R:91:3',
    'test_mixed.R:117:3', 'test_mkinds.R:12:3', 'test_multistart.R:4:3',
    'test_nafta.R:7:3', 'test_nafta.R:29:3', 'test_nlme.R:98:3',
    'test_plot.R:4:3', 'test_saemix_parent.R:5:3',
    'test_schaefer07_complex_case.R:5:3',
    'test_synthetic_data_for_UBA_2014.R:5:3',
    'test_synthetic_data_for_UBA_2014.R:24:3', 'test_tests.R:38:3',
    'test_twa.R:4:3'
  • This still takes almost 2.5 minutes although we do not solve ODEs (1):
    'test_saemix_parent.R:143:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_compiled_symbols.R:52:5'): We can safely use compiled code ───
  file.remove("test_dlls/sfo_sfo.dll") is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 1 | WARN 2 | SKIP 31 | PASS 117 ]
  Deleting unused snapshots:
  • multistart/llhist-for-dfop-sfo-fit.svg
  • multistart/llhist-for-sfo-fit.svg
  • multistart/mixed-model-fit-for-saem-object-with-mkin-transformations.svg
  • multistart/parplot-for-dfop-sfo-fit.svg
  • multistart/parplot-for-sfo-fit.svg
  • nafta/nafta-sop-appendix-b.svg
  • nafta/plot-nafta-analysis.svg
  • plot/mixed-model-fit-for-mmkin-object.svg
  • plot/mixed-model-fit-for-nlme-object.svg
  • plot/mixed-model-fit-for-saem-object-with-saemix-transformations.svg
  • plot/mkinerrplot-for-focus-c-sfo.svg
  • plot/mkinfit-plot-for-focus-c-with-defaults.svg
  • plot/mkinfit-plot-for-focus-c-with-residuals-like-in-gmkin.svg
  • plot/mkinfit-plot-for-focus-c-with-sep-true.svg
  • plot/mkinparplot-for-focus-c-sfo.svg
  • plot/mmkin-plot-for-focus-c.svg
  • plot/mmkin-plot-for-sfo-focus-c-and-d.svg
  • plot/plot-err-for-focus-d.svg
  • plot/plot-errmod-with-focus-c-tc.svg
  • plot/plot-errmod-with-focus-d-obs-eigen.svg
  • plot/plot-res-for-focus-c.svg
  • plot/plot-res-for-focus-d.svg
  Error: Test failures
  Execution halted