* using log directory 'd:/Rcompile/CRANpkg/local/4.3/mkin.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * using option '--no-vignettes' * checking for file 'mkin/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'mkin' version '1.2.6' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'mkin' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [22s] OK * checking Rd files ... [2s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... [2s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [70s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [175s] ERROR 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 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking running R code from vignettes ... SKIPPED * checking re-building of vignette outputs ... SKIPPED * checking PDF version of manual ... [14s] OK * checking HTML version of manual ... [16s] OK * DONE Status: 1 ERROR