Running 'testthat.R' [92s]
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 2 | WARN 8 | SKIP 1 | PASS 53 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cshp_mult.R:17'): chsp_mult creates proper list ────────────────
  Error in `file.exists(dsn)`: file name conversion problem -- name too long?
  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.       └─base::file.exists(dsn)
  ── Error ('test-plot_cshp_mult.R:20'): plot.chsp_mult produces same plot ───────
  Error in `file.exists(dsn)`: file name conversion problem -- name too long?
  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.       └─base::file.exists(dsn)
  
  [ FAIL 2 | WARN 8 | SKIP 1 | PASS 53 ]
  Deleting unused snapshots:
  • plot_cshp_mult/blakans-secession-plot.svg
  • plot_cshp_mult/yemens-secession-plot.svg
  Error: Test failures
  Execution halted