Running ‘testthat.R’ [257s/263s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(covid19mobility)
  > library(glue)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:glue':
  
      collapse
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > 
  > refresh_funs <- dplyr::tribble(
  +   ~fun, ~len, ~date_check,
  +   "refresh_covid19mobility_apple_country", 18207, "2020-05-11",
  +   "refresh_covid19mobility_apple_subregion", 91590, "2020-06-04",
  +   "refresh_covid19mobility_apple_city", 453690, "2020-06-04", # as of 2020
  +   "refresh_covid19mobility_google_country", 83160, "2020-06-04", # as of 2020
  +   "refresh_covid19mobility_google_subregions", 1081764, "2020-06-04", # as of 2020
  +   "refresh_covid19mobility_google_us_counties", 1708692, "2020-06-04" # as of 2020
  + )
  > 
  > refresh_funs <- refresh_funs %>%
  +   dplyr::mutate(dat = lapply(fun, function(x) eval(call(x))))
  Warning: Problem with `mutate()` input `dat`.
  ℹ 23070 parsing failures.
   row        col           expected                  actual                                                                  file
  3162 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3163 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3164 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3165 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3166 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  .... .......... .................. ....................... .....................................................................
  See problems(...) for more detai [... truncated]
  Warning: Problem with `mutate()` input `dat`.
  ℹ 23070 parsing failures.
   row        col           expected                  actual                                                                  file
  3162 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3163 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3164 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3165 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3166 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  .... .......... .................. ....................... .....................................................................
  See problems(...) for more detai [... truncated]
  Joining, by = c("location_code", "sub_region_1")
  Warning: Problem with `mutate()` input `dat`.
  ℹ 23070 parsing failures.
   row        col           expected                  actual                                                                  file
  3162 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3163 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3164 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3165 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3166 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  .... .......... .................. ....................... .....................................................................
  See problems(...) for more detai [... truncated]
  Warning: Problem with `mutate()` input `dat`.
  ℹ 23070 parsing failures.
   row        col           expected                  actual                                                                  file
  3162 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3163 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3164 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3165 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  3166 metro_area 1/0/T/F/TRUE/FALSE Kabul Metropolitan Area 'https://www.gstatic.com/covid19/mobility/Global_Mobility_Report.csv'
  .... .......... .................. ....................... .....................................................................
  See problems(...) for more detai [... truncated]
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==                                                                    |   3%
    |                                                                            
    |========                                                              |  12%
    |                                                                            
    |==========                                                            |  14%
    |                                                                            
    |===========                                                           |  15%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |=============                                                         |  18%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |================                                                      |  23%
    |                                                                            
    |=================                                                     |  24%
    |                                                                            
    |====================                                                  |  29%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |==========================                                            |  36%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |===============================                                       |  44%
    |                                                                            
    |=================================                                     |  47%
    |                                                                            
    |====================================                                  |  52%
    |                                                                            
    |=====================================                                 |  53%
    |                                                                            
    |=======================================                               |  56%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |=============================================                         |  64%
    |                                                                            
    |================================================                      |  68%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |======================================================                |  78%
    |                                                                            
    |==========================================================            |  82%
    |                                                                            
    |=============================================================         |  87%
    |                                                                            
    |===================================================================   |  96%
    |                                                                            
    |======================================================================| 100%
  Cannot open layer cb_2019_us_county_20m
  Error: Problem with `mutate()` input `dat`.
  ✖ Opening layer failed.
  
  ℹ Input `dat` is `lapply(fun, function(x) eval(call(x)))`.
  Backtrace:
       █
    1. ├─refresh_funs %>% dplyr::mutate(dat = lapply(fun, function(x) eval(call(x))))
    2. ├─dplyr::mutate(., dat = lapply(fun, function(x) eval(call(x))))
    3. ├─dplyr:::mutate.data.frame(., dat = lapply(fun, function(x) eval(call(x))))
    4. │ └─dplyr:::mutate_cols(.data, ...)
    5. │   ├─base::withCallingHandlers(...)
    6. │   └─mask$eval_all_mutate(quo)
    7. ├─base::lapply(fun, function(x) eval(call(x)))
    8. │ └─FUN(X[[i]], ...)
    9. │   ├─base::eval(call(x))
   10. │   │ └─base::eval(call(x))
   11. │   └─covid19mobility::refresh_covid19mobility_google_us_counties()
   12. │     ├─base::suppressMessages(...)
   13. │     │ └─base::withCallingHandlers(...)
   14. │     ├─covid19mobility:::goog_counties_lut(gmob, load_fips())
   15. │     │ └─`%>%`(...)
   16. │     └─covid19mobility:::load_fips()
   17. │       ├─`%>%`(...)
   18. │       └─tigris::counties(resolution = "20m", cb = TRUE, class = "sf")
   19. │         └─tigris:::load_tiger(url, tigris_type = "county", ...)
   20. │           ├─sf::st_read(dsn = tmp, layer = shape, quiet = TRUE, stringsAsFactors = FALSE)
   21. │           └─sf:::st_read.character(...)
   22. │             └─sf:::CPL_read_ogr(...)
   23. ├─dplyr::mutate(...)
   24. ├─dplyr::select(., -geometry)
   25. ├─dplyr::as_tibble(.)
   26. ├─dplyr::rename(., sub_region_2 = NAME, location_code = GEOID)
   27. ├─base::stop(...)
   28. └─(function (e) ...
  Warning message:
  Problem with `mutate()` input `dat`.
  ℹ error 1 in extracting from zip file
  ℹ Input `dat` is `lapply(fun, function(x) eval(call(x)))`. 
  Execution halted