Running ‘testthat.R’ [3s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(Pandora)
  > 
  > test_check("Pandora")
  Error in getData(name = "14CARHU - Radiocarbon Dates of Helsinki University") : 
    Error in validateResource(., repository = repository) : 
    No resource found for repository ''
  
  Error in getData(name = "MAIA Humans CSV", options = dataOptions(sep = ";")) : 
    Error in validateResource(., repository = repository) : 
    No resource found for repository ''
  
  Error in getData(name = "MAIA Humans CSV", options = dataOptions(sep = ";",  : 
    Error in validateResource(., repository = repository) : 
    No resource found for repository ''
  
  Error in getData(name = "CIMA Animals 29.05.2021 CSV", options = dataOptions(sep = ";")) : 
    Error in validateResource(., repository = repository) : 
    No resource found for repository ''
  
  Error in getData(name = "CIMA Plants 29.05.2021 CSV", options = dataOptions(sep = ";")) : 
    Error in validateResource(., repository = repository) : 
    No resource found for repository ''
  
  Error in getData(name = "Zanadamu CSV format", options = dataOptions(fileEncoding = "ISO-8859-1")) : 
    Error in validateResource(., repository = repository) : 
    No resource found for repository ''
  
  [ FAIL 12 | WARN 36 | SKIP 4 | PASS 7 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • empty test (4): 'test-getData.R:1:1', 'test-getData.R:21:1',
    'test-getData.R:45:1', 'test-getData.R:70:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-ckan.R:4:3'): Test getResources() ────────────────────────────
  getResources(fileType = c("csv"), pattern = "victoria") not equal to structure(...).
  Attributes: < Names: 1 string mismatch >
  Attributes: < Length mismatch: comparison on first 2 components >
  Attributes: < Component 2: Modes: character, numeric >
  Attributes: < Component 2: Lengths: 1, 2 >
  Attributes: < Component 2: target is character, current is numeric >
  Component "repository": Lengths (0, 2) differ (string compare on first 0)
  Component "name": Lengths (0, 2) differ (string compare on first 0)
  Component "format": Lengths (0, 2) differ (string compare on first 0)
  Component "url": Lengths (0, 2) differ (string compare on first 0)
  ── Failure ('test-ckan.R:21:3'): Test getFileTypes() ───────────────────────────
  getFileTypes(pattern = "victoria") not equal to structure(...).
  Names: 1 string mismatch
  Attributes: < Names: 1 string mismatch >
  Attributes: < Length mismatch: comparison on first 2 components >
  Attributes: < Component 2: Modes: character, numeric >
  Attributes: < Component 2: target is character, current is numeric >
  Length mismatch: comparison on first 2 components
  Component "name": Lengths (0, 1) differ (string compare on first 0)
  Component 2: Lengths (0, 1) differ (string compare on first 0)
  ── Failure ('test-ckan.R:31:3'): Test getRepositories() ────────────────────────
  nrow(getRepositories(network = "aghfjdhfjgkhj")) == 0 is not TRUE
  
  `actual`:       
  `expected`: TRUE
  ── Failure ('test-ckan.R:34:3'): Test getRepositories() ────────────────────────
  colnames(testRepos) not equal to c(...).
  target is NULL, current is character
  ── Failure ('test-ckan.R:39:3'): Test getRepositories() ────────────────────────
  all(...) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-ckan.R:44:3'): Test getRepositories() ────────────────────────
  all(...) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-ckan.R:52:3'): Test getRepositories() ────────────────────────
  "austarch-a-database-of-14c-and-luminescence-ages-from-archaeological-sites-in-australia" not equal to testRepos$Name.
  Types not compatible: character is not NULL
  ── Failure ('test-ckan.R:57:3'): Test getRepositories() ────────────────────────
  "AustArch: A Database of 14C and Luminescence Ages from Archaeological Sites in Australia" not equal to testRepos$Repository.
  Types not compatible: character is not NULL
  ── Failure ('test-ckan.R:63:3'): Test getRepositories() ────────────────────────
  colnames(testRepos) not equal to c(...).
  target is NULL, current is character
  ── Failure ('test-ckan.R:85:3'): Test filterPattern() ──────────────────────────
  nrow(filterPattern(testRes, pattern = "Roman")) < nrow(testRes) is not TRUE
  
  `actual`:       
  `expected`: TRUE
  ── Failure ('test-ckan.R:88:3'): Test filterPattern() ──────────────────────────
  nrow(filterPattern(testRes, pattern = "cjyvfljdosijvckjnlsfnsdkfnak")) == 
      0 is not TRUE
  
  `actual`:       
  `expected`: TRUE
  ── Error ('test-getData.R:126:3'): Test loadData() ─────────────────────────────
  Error in `match.arg(type)`: 'arg' should be one of "xlsx", "xls", "odt", "csv", "txt"
  Backtrace:
      ▆
   1. └─Pandora::loadData(...) at test-getData.R:126:3
   2.   └─base::match.arg(type)
  
  [ FAIL 12 | WARN 36 | SKIP 4 | PASS 7 ]
  Error: Test failures
  Execution halted