Running ‘testthat.R’ [35s/49s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(madrat)
  Loading required package: magclass
  > 
  > test_check("madrat")
  [ FAIL 12 | WARN 0 | SKIP 8 | PASS 537 ]
  
  ══ Skipped tests (8) ═══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-calcOutput.R:23:3', 'test-calcOutput.R:114:3',
    'test-metadataGFZ.R:2:3', 'test-puc.R:2:4', 'test-readSource.R:55:3',
    'test-readSource.R:61:3', 'test-readSource.R:70:3'
  • reshape2 cannot be loaded (1): 'test-calcOutput.R:450:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-calcOutput.R:161:3'): Standard workflow works ──────────────────
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
      ▆
   1. ├─utils::capture.output(retrieveData("test2", puc = FALSE)) at test-calcOutput.R:161:2
   2. │ └─base::withVisible(...elt(i))
   3. └─madrat::retrieveData("test2", puc = FALSE)
   4.   └─base::numeric_version(rev)
   5.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Error ('test-retrieveData.R:2:3'): retrieveData works as expected ───────────
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
      ▆
   1. ├─testthat::expect_message(...) at test-retrieveData.R:2:2
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─madrat::retrieveData("example", rev = 0, dev = "test")
   7.   └─base::numeric_version(rev)
   8.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Failure ('test-retrieveData.R:9:3'): retrieveData properly detects malformed inputs ──
  `retrieveData("NotThere")` threw an error with unexpected message.
  Expected match: "is not a valid output type"
  Actual message: "invalid non-character version specification 'x' (type: double)"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(retrieveData("NotThere"), "is not a valid output type") at test-retrieveData.R:9:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─madrat::retrieveData("NotThere")
   7.   └─base::numeric_version(rev)
   8.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Failure ('test-retrieveData.R:11:3'): retrieveData properly detects malformed inputs ──
  `retrieveData("Example", unknownargument = 42)` threw an error with unexpected message.
  Expected match: "Unknown argument"
  Actual message: "invalid non-character version specification 'x' (type: double)"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-retrieveData.R:11:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─madrat::retrieveData("Example", unknownargument = 42)
   7.   └─base::numeric_version(rev)
   8.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Failure ('test-retrieveData.R:21:3'): argument handling works ───────────────
  `retrieveData("Test")` threw an error with unexpected message.
  Expected match: "is not a valid output type"
  Actual message: "invalid non-character version specification 'x' (type: double)"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(retrieveData("Test"), "is not a valid output type") at test-retrieveData.R:21:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─madrat::retrieveData("Test")
   7.   └─base::numeric_version(rev)
   8.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Error ('test-retrieveData.R:22:3'): argument handling works ─────────────────
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-retrieveData.R:22:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─madrat::retrieveData("Test", globalenv = TRUE)
   7.   └─base::numeric_version(rev)
   8.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Error ('test-retrieveData.R:36:3'): set extramapping via localConfig and add its hash to filename ──
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
      ▆
   1. ├─testthat::expect_message(retrieveData("TestX"), "Run retrieveData") at test-retrieveData.R:36:2
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─madrat::retrieveData("TestX")
   7.   └─base::numeric_version(rev)
   8.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Error ('test-retrieveData.R:52:3'): set extramapping via retrieveData and add its hash and the hash of the full function to filename ──
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
      ▆
   1. ├─testthat::expect_message(...) at test-retrieveData.R:52:2
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─madrat::retrieveData(...)
   7.   └─base::numeric_version(rev)
   8.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Error ('test-retrieveData.R:67:3'): a tag can be appended to filename ───────
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
      ▆
   1. ├─testthat::expect_message(retrieveData("TestTag"), "Run retrieveData") at test-retrieveData.R:67:2
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─madrat::retrieveData("TestTag")
   7.   └─base::numeric_version(rev)
   8.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Error ('test-retrieveData.R:82:3'): retrieveData works if no tag is returned ──
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
      ▆
   1. ├─testthat::expect_message(retrieveData("Testtwo"), "Run retrieveData") at test-retrieveData.R:82:2
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─madrat::retrieveData("Testtwo")
   7.   └─base::numeric_version(rev)
   8.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Error ('test-retrieveData.R:93:3'): different kinds of arguments are logged correctly ──
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
      ▆
   1. ├─testthat::expect_message(...) at test-retrieveData.R:93:2
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─madrat::retrieveData("Test", arg1 = var1, arg2 = var2, arg3 = var3)
   7.   └─base::numeric_version(rev)
   8.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Error ('test-retrieveData.R:112:3'): strict mode works ──────────────────────
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-retrieveData.R:112:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─madrat::retrieveData("WarnTest", strict = TRUE, cachetype = "def")
   7.   └─base::numeric_version(rev)
   8.     └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  
  [ FAIL 12 | WARN 0 | SKIP 8 | PASS 537 ]
  Error: Test failures
  Execution halted