Running ‘testthat.R’ [48s/189s]
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 9 | SKIP 1 | PASS 48 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cshp_mult.R:17'): chsp_mult creates proper list ────────────────
  <Rcpp::eval_error/C++Error/error/condition>
  Error in `CPL_read_ogr(dsn, layer, query, as.character(options), quiet, 
      type, fid_column_name, drivers, wkt_filter, promote_to_multi, 
      int64_as_string, dsn_exists, dsn_isdb, getOption("width"))`: Evaluation error: a valid "POSIXlt" object has names.
  Backtrace:
       ▆
    1. └─demcon::cshp_mult(...) at test-cshp_mult.R:17:3
    2.   ├─base::suppressWarnings(cshapes::cshp(date = dates[i], useGW = FALSE))
    3.   │ └─base::withCallingHandlers(...)
    4.   └─cshapes::cshp(date = dates[i], useGW = FALSE)
    5.     ├─cshapes (local) defineProj(sf::st_read(fcontent, quiet = TRUE, drivers = "TopoJSON"))
    6.     │ ├─sf::st_transform(sf::st_set_crs(sf, 4326), 4326)
    7.     │ └─sf::st_set_crs(sf, 4326)
    8.     ├─sf::st_read(fcontent, quiet = TRUE, drivers = "TopoJSON")
    9.     └─sf:::st_read.character(fcontent, quiet = TRUE, drivers = "TopoJSON")
   10.       └─sf:::CPL_read_ogr(...)
  ── Error ('test-get_vdem.R:4'): vdem source is still there and the same ────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [github.com] SSL connection timeout
  Backtrace:
      ▆
   1. └─httr::HEAD(vdem_url) at test-get_vdem.R:4:2
   2.   └─httr:::request_perform(req, hu$handle$handle)
   3.     ├─httr:::request_fetch(req$output, req$url, handle)
   4.     └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   5.       └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-hci.R: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))
  ── Error ('test-plot_cshp_mult.R:20'): plot.chsp_mult produces same plot ───────
  <Rcpp::eval_error/C++Error/error/condition>
  Error in `CPL_read_ogr(dsn, layer, query, as.character(options), quiet, 
      type, fid_column_name, drivers, wkt_filter, promote_to_multi, 
      int64_as_string, dsn_exists, dsn_isdb, getOption("width"))`: Evaluation error: a valid "POSIXlt" object has names.
  Backtrace:
       ▆
    1. └─demcon::cshp_mult(...) at test-plot_cshp_mult.R:20:2
    2.   ├─base::suppressWarnings(cshapes::cshp(date = dates[i], useGW = FALSE))
    3.   │ └─base::withCallingHandlers(...)
    4.   └─cshapes::cshp(date = dates[i], useGW = FALSE)
    5.     ├─cshapes (local) defineProj(sf::st_read(fcontent, quiet = TRUE, drivers = "TopoJSON"))
    6.     │ ├─sf::st_transform(sf::st_set_crs(sf, 4326), 4326)
    7.     │ └─sf::st_set_crs(sf, 4326)
    8.     ├─sf::st_read(fcontent, quiet = TRUE, drivers = "TopoJSON")
    9.     └─sf:::st_read.character(fcontent, quiet = TRUE, drivers = "TopoJSON")
   10.       └─sf:::CPL_read_ogr(...)
  
  [ FAIL 4 | WARN 9 | SKIP 1 | PASS 48 ]
  Deleting unused snapshots:
  • plot_cshp_mult/blakans-secession-plot.svg
  • plot_cshp_mult/yemens-secession-plot.svg
  Error: Test failures
  Execution halted