Running ‘testthat.R’ [161s/261s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(demcon)
  > 
  > test_check("demcon")
  trying URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  Content type 'application/zip' length 280499 bytes (273 KB)
  ==================================================
  downloaded 273 KB
  
  trying URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  Content type 'application/zip' length 280499 bytes (273 KB)
  ==================================================
  downloaded 273 KB
  
  trying URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  Content type 'application/zip' length 280499 bytes (273 KB)
  ==================================================
  downloaded 273 KB
  
  trying URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  Content type 'application/zip' length 280499 bytes (273 KB)
  ==================================================
  downloaded 273 KB
  
  trying URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  Content type 'application/zip' length 280499 bytes (273 KB)
  ==================================================
  downloaded 273 KB
  
  [ FAIL 4 | WARN 18 | SKIP 2 | PASS 53 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_vdem.R:9'): vdem source is still there and the same ──────
  dim(vdem) (`actual`) not equal to c(27380, 4170) (`expected`).
  
    `actual`: 27555 4602
  `expected`: 27380 4170
  ── Failure ('test-prep_vdem.R:7'): vdem hasn't changed ─────────────────────────
  max(vdem$year) (`actual`) not equal to 2021 (`expected`).
  
    `actual`: 2022
  `expected`: 2021
  ── Failure ('test-prep_vdem.R:10'): vdem hasn't changed ────────────────────────
  dim(vdem) (`actual`) not equal to c(27380, 4170) (`expected`).
  
    `actual`: 27555 4602
  `expected`: 27380 4170
  ── Failure ('test-prep_vdem.R:80'): prep vdem works ────────────────────────────
  length(unique(vdem$iso3)) (`actual`) not equal to 177 (`expected`).
  
    `actual`: 176
  `expected`: 177
  
  [ FAIL 4 | WARN 18 | SKIP 2 | PASS 53 ]
  Deleting unused snapshots:
  • plot_cshp_mult/yemens-secession-plot.svg
  Error: Test failures
  Execution halted