Running ‘testthat.R’ [2s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(covid19france)
  > 
  > test_check("covid19france")
  Saving _problems/test-all-18.R
  Saving _problems/test-all-30.R
  [ FAIL 2 | WARN 2 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-all.R:16:3'): original cols we care about are still there ──────
  Error: cannot open the connection to 'https://raw.githubusercontent.com/opencovid19-fr/data/master/dist/chiffres-cles.csv'
  Backtrace:
      ▆
   1. ├─readr::read_csv(url) at test-all.R:16:3
   2. │ └─vroom::vroom(...)
   3. │   └─vroom:::vroom_(...)
   4. └─vroom (local) `<fn>`(`<url>`, "rb")
   5.   └─base::tryCatch(...)
   6.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         └─value[[3L]](cond)
  ── Error ('test-all.R:28:3'): cleaning and averaging ───────────────────────────
  Error: cannot open the connection to 'https://raw.githubusercontent.com/opencovid19-fr/data/master/dist/chiffres-cles.csv'
  Backtrace:
       ▆
    1. ├─read_data() %>% clean_data() at test-all.R:28:3
    2. ├─covid19france:::clean_data(.)
    3. │ └─... %>% dplyr::mutate_if(is.character, stringr::str_squish)
    4. ├─dplyr::mutate_if(., is.character, stringr::str_squish)
    5. │ └─dplyr:::check_grouped(.tbl, "mutate", "if")
    6. │   └─dplyr::is_grouped_df(tbl)
    7. ├─dplyr::arrange(., desc(date), region_name)
    8. ├─dplyr::select(...)
    9. ├─covid19france:::read_data()
   10. │ └─readr::read_csv(...)
   11. │   └─vroom::vroom(...)
   12. │     └─vroom:::vroom_(...)
   13. └─vroom (local) `<fn>`(`<url>`, "rb")
   14.   └─base::tryCatch(...)
   15.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   16.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   17.         └─value[[3L]](cond)
  
  [ FAIL 2 | WARN 2 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted