Running ‘testthat.R’ [82s/412s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(demcon)
  > 
  > test_check("demcon")
  The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
  which was just loaded, will retire in October 2023.
  Please refer to R-spatial evolution reports for details, especially
  https://r-spatial.org/r/2023/05/15/evolution4.html.
  It may be desirable to make the sf package available;
  package maintainers should consider adding sf to Suggests:.
  The sp package is now running under evolution status 2
       (status 2 uses the sf package in place of rgdal)
  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 3 | WARN 8 | SKIP 2 | PASS 50 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-plot_cce.R:10:3', 'test-plot_cshp_mult.R:28:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cow_iso_clean.R:3:3'): cow_iso_clean makes changes ─────────────
  Error in `load(url(vdem_url))`: cannot open the connection to 'https://github.com/vdeminstitute/vdemdata/raw/master/data/vdem.RData'
  Backtrace:
      ▆
   1. └─demcon::get_vdem() at test-cow_iso_clean.R:3:2
   2.   ├─base::get(load(url(vdem_url)))
   3.   └─base::load(url(vdem_url))
  ── Error ('test-get_vdem.R:5:3'): vdem source is still there and the same ──────
  Error in `load(url(vdem_url))`: cannot open the connection to 'https://github.com/vdeminstitute/vdemdata/raw/master/data/vdem.RData'
  Backtrace:
      ▆
   1. └─demcon::get_vdem() at test-get_vdem.R:5:2
   2.   ├─base::get(load(url(vdem_url)))
   3.   └─base::load(url(vdem_url))
  ── Error ('test-hci.R:3:3'): hci produces missing var error ────────────────────
  Error in `load(url(vdem_url))`: cannot open the connection to 'https://github.com/vdeminstitute/vdemdata/raw/master/data/vdem.RData'
  Backtrace:
      ▆
   1. └─demcon::get_vdem() at test-hci.R:3:2
   2.   ├─base::get(load(url(vdem_url)))
   3.   └─base::load(url(vdem_url))
  
  [ FAIL 3 | WARN 8 | SKIP 2 | PASS 50 ]
  Deleting unused snapshots:
  • plot_cshp_mult/yemens-secession-plot.svg
  Error: Test failures
  Execution halted