Running ‘testthat.R’ [233s/380s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(PKPDsim)
  > 
  > test_check("PKPDsim")
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  Simulating 3 individuals.
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  using C++ compiler: ‘g++-12 (Debian 12.2.0-14) 12.2.0’
  [ FAIL 1 | WARN 2 | SKIP 25 | PASS 369 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (25)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_is_newer_package.R:19'): Returns true when package is not installed ──
  Error in `if (installed_version == new_version) {
      message(paste0("- Installed version is already newest, skipping installation of ", 
          package, "."))
      return(FALSE)
  } else {
      message(paste0("- Installed version is different from current version number, starting installation of ", 
          package, "."))
      return(TRUE)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─testthat::expect_message(...) at test_is_newer_package.R:19:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─PKPDsim:::is_newer_package(...)
  
  [ FAIL 1 | WARN 2 | SKIP 25 | PASS 369 ]
  Error: Test failures
  Execution halted