Running 'testthat.R' [163s]
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'
  trying URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  trying URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  trying URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  trying URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  [ FAIL 9 | WARN 31 | SKIP 1 | PASS 42 ]
  
  == Skipped tests ===============================================================
  * On CRAN (1)
  
  == Failed tests ================================================================
  -- Error ('test-get_cce.R:5'): cce source is still there and downloads ---------
  Error in `utils::download.file(cce_url, file.path(tempdir(), "ccpcce_v1_3.zip"))`: cannot open URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  Backtrace:
      x
   1. \-demcon::get_cce(del_file = FALSE) at test-get_cce.R:5:2
   2.   \-utils::download.file(cce_url, file.path(tempdir(), "ccpcce_v1_3.zip"))
  -- Error ('test-get_cce.R:17'): cce structure is the same ----------------------
  Error in `utils::download.file(cce_url, file.path(tempdir(), "ccpcce_v1_3.zip"))`: cannot open URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  Backtrace:
      x
   1. \-demcon::get_cce(del_file = FALSE) at test-get_cce.R:17:2
   2.   \-utils::download.file(cce_url, file.path(tempdir(), "ccpcce_v1_3.zip"))
  -- 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
  -- Error ('test-plot_cce.R:3'): plot.cce works same as last test ---------------
  Error in `utils::download.file(cce_url, file.path(tempdir(), "ccpcce_v1_3.zip"))`: cannot open URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  Backtrace:
      x
   1. \-demcon::get_cce() at test-plot_cce.R:3:2
   2.   \-utils::download.file(cce_url, file.path(tempdir(), "ccpcce_v1_3.zip"))
  -- Error ('test-prep_cce.R:3'): prep cce completes prep ------------------------
  Error in `utils::download.file(cce_url, file.path(tempdir(), "ccpcce_v1_3.zip"))`: cannot open URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  Backtrace:
      x
   1. \-demcon::get_cce() at test-prep_cce.R:3:2
   2.   \-utils::download.file(cce_url, file.path(tempdir(), "ccpcce_v1_3.zip"))
  -- 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
  -- Error ('test-utils.R:2'): multi_sub indexes properly ------------------------
  Error in `utils::download.file(cce_url, file.path(tempdir(), "ccpcce_v1_3.zip"))`: cannot open URL 'https://comparativeconstitutionsproject.org/data/ccpcce_v1_3.zip'
  Backtrace:
      x
   1. \-demcon::get_cce() at test-utils.R:2:2
   2.   \-utils::download.file(cce_url, file.path(tempdir(), "ccpcce_v1_3.zip"))
  
  [ FAIL 9 | WARN 31 | SKIP 1 | PASS 42 ]
  Deleting unused snapshots:
  * plot_cce/france-cce-plot.svg
  * plot_cshp_mult/yemens-secession-plot.svg
  Error: Test failures
  Execution halted