Running 'testthat.R' [346s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(PKPDsim)
  > 
  > test_check("PKPDsim")
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  Simulating 3 individuals.
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  
  cc1plus.exe: out of memory allocating 65536 bytes
  make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:272: file20a2c5ff8784.o] Error 1
  make[1]: Entering directory '/d/temp/RtmpCyS20a/sourceCpp-x86_64-w64-mingw32-1.0.10/sourcecpp_20a2c5b948bd'
  make[1]: Leaving directory '/d/temp/RtmpCyS20a/sourceCpp-x86_64-w64-mingw32-1.0.10/sourcecpp_20a2c5b948bd'
  make[1]: Entering directory '/d/temp/RtmpCyS20a/sourceCpp-x86_64-w64-mingw32-1.0.10/sourcecpp_20a2c5b948bd'
  g++ -std=gnu++17  -I"D:/RCompile/recent/R/include" -DNDEBUG   -I"D:/RCompile/CRANpkg/lib/4.3/Rcpp/include" -I"D:/RCompile/CRANpkg/lib/4.3/BH/include" -I"D:/temp/RtmpCyS20a/sourceCpp-x86_64-w64-mingw32-1.0.10"   -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include"   -w   -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c file20a2c5ff8784.cpp -o file20a2c5ff8784.o
  make[1]: Leaving directory '/d/temp/RtmpCyS20a/sourceCpp-x86_64-w64-mingw32-1.0.10/sourcecpp_20a2c5b948bd'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  using C++ compiler: 'g++.exe (GCC) 12.2.0'
  [ FAIL 1 | WARN 0 | SKIP 28 | PASS 396 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (28)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_model_from_api.R:2'): Can specify a package from json ──────────
  Error in `Rcpp::sourceCpp(code = sim_func, rebuild = TRUE, env = globalenv(), 
      verbose = verbose, showOutput = verbose)`: Error 1 occurred building shared library.
  Backtrace:
      ▆
   1. └─PKPDsim::model_from_api(...) at test_model_from_api.R:2:2
   2.   └─PKPDsim::new_ode_model(...)
   3.     └─PKPDsim::compile_sim_cpp(...)
   4.       └─Rcpp::sourceCpp(...)
  
  [ FAIL 1 | WARN 0 | SKIP 28 | PASS 396 ]
  Error: Test failures
  Execution halted