R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night" Copyright (C) 2019 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(lutz) > > test_check("lutz") Error : foo is not a valid time zone. See ?OlsonNames OGR: Corrupt data ── 1. Error: tz_lookup.sf works (@test-tz_lookup2.R#36) ─────────────────────── OGR error Backtrace: 1. testthat::expect_equal(...) 4. lutz::tz_lookup(pt, 3005, method = "accurate") 6. lutz:::tz_lookup_accurate.sfc(x, crs) 8. lutz:::tz_lookup_accurate.sf(x_sf, crs = crs) 9. lutz:::fix_sf(x, crs) 10. sf:::Ops.crs(sf::st_crs(x), sf::st_crs(4326)) 11. sf:::Ops.crs(e1, e2) 12. sf:::CPL_crs_equivalent(e1$proj4string, e2$proj4string) OGR: Corrupt data ── 2. Error: tz_lookup.SpatialPoints works (@test-tz_lookup2.R#52) ──────────── OGR error Backtrace: 1. testthat::expect_equal(...) 4. lutz::tz_lookup(pt, 3005, method = "accurate") 6. lutz:::tz_lookup_accurate.SpatialPoints(x, crs) 8. lutz:::tz_lookup_accurate.sf(x, crs) 9. lutz:::fix_sf(x, crs) 10. sf:::Ops.crs(sf::st_crs(x), sf::st_crs(4326)) 11. sf:::Ops.crs(e1, e2) 12. sf:::CPL_crs_equivalent(e1$proj4string, e2$proj4string) ══ testthat results ═══════════════════════════════════════════════════════════ [ OK: 1084 | SKIPPED: 0 | WARNINGS: 12 | FAILED: 2 ] 1. Error: tz_lookup.sf works (@test-tz_lookup2.R#36) 2. Error: tz_lookup.SpatialPoints works (@test-tz_lookup2.R#52) Error: testthat unit tests failed Execution halted