Running 'testthat.R' [172s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(demcon)
  > 
  > test_check("demcon")
  Initiating curl with CURL_SSL_BACKEND: openssl
  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 5 | WARN 21 | SKIP 1 | PASS 46 ]
  
  == Skipped tests ===============================================================
  * On CRAN (1)
  
  == Failed tests ================================================================
  -- Error ('test-get_cce.R:5:3'): 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:3'): 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"))
  -- Error ('test-plot_cce.R:3: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: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"))
  -- Error ('test-utils.R:2:3'): 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 5 | WARN 21 | SKIP 1 | PASS 46 ]
  Deleting unused snapshots:
  * plot_cce/france-cce-plot.svg
  * plot_cshp_mult/yemens-secession-plot.svg
  Error: Test failures
  Execution halted