Running ‘testthat.R’ [3s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(IsoMemo)
  > 
  > test_check("IsoMemo")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 4 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-01-getData.R:7:3'): getData() actually retrieves all data ──────
  Error in `if (dim(isoData)[2] == 0) {
      warning("data.frame is empty, the category or field may not exist in the database")
      return(NULL)
  } else {
      isoData[sapply(isoData, is.character)] <- lapply(isoData[sapply(isoData, 
          is.character)], as.factor)
      isoData
  }`: argument is of length zero
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-01-getData.R:7: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. └─IsoMemo::getData(db = "IntChron", category = "Location", field = "measure")
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted
Running ‘testthat.R’ [3s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(IsoMemo)
  > 
  > test_check("IsoMemo")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 4 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-01-getData.R:7:3'): getData() actually retrieves all data ──────
  Error in `if (dim(isoData)[2] == 0) {
      warning("data.frame is empty, the category or field may not exist in the database")
      return(NULL)
  } else {
      isoData[sapply(isoData, is.character)] <- lapply(isoData[sapply(isoData, 
          is.character)], as.factor)
      isoData
  }`: argument is of length zero
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-01-getData.R:7: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. └─IsoMemo::getData(db = "IntChron", category = "Location", field = "measure")
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted
Namespaces in Imports field not imported from:
  ‘curl’ ‘modules’
  All declared Imports should be used.
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(IsoMemo)
  > 
  > test_check("IsoMemo")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 4 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-01-getData.R:7:3'): getData() actually retrieves all data ──────
  Error in `if (dim(isoData)[2] == 0) {
      warning("data.frame is empty, the category or field may not exist in the database")
      return(NULL)
  } else {
      isoData[sapply(isoData, is.character)] <- lapply(isoData[sapply(isoData, 
          is.character)], as.factor)
      isoData
  }`: argument is of length zero
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-01-getData.R:7: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. └─IsoMemo::getData(db = "IntChron", category = "Location", field = "measure")
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted
Namespaces in Imports field not imported from:
  ‘curl’ ‘modules’
  All declared Imports should be used.
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(IsoMemo)
  > 
  > test_check("IsoMemo")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 4 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-01-getData.R:7:3'): getData() actually retrieves all data ──────
  Error in `if (dim(isoData)[2] == 0) {
      warning("data.frame is empty, the category or field may not exist in the database")
      return(NULL)
  } else {
      isoData[sapply(isoData, is.character)] <- lapply(isoData[sapply(isoData, 
          is.character)], as.factor)
      isoData
  }`: argument is of length zero
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-01-getData.R:7: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. └─IsoMemo::getData(db = "IntChron", category = "Location", field = "measure")
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted
Namespaces in Imports field not imported from:
  ‘curl’ ‘modules’
  All declared Imports should be used.