Running ‘testthat.R’ [116s/170s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(jpndistrict)
  This package provide map data is based on the Digital Map 25000 (Map
  Image) published by Geospatial Information Authority of Japan (Approval
  No.603FY2017 information usage <http://www.gsi.go.jp>)
  > 
  > test_check("jpndistrict")
  ── 1. Error: prefecture (@test-find_city.R#5)  ─────────────────────────────────
  argument is not interpretable as logical
  Backtrace:
    1. jpndistrict::find_pref(longitude = 130.4412895, latitude = 30.2984335)
   21. jpmesh::coords_to_mesh(longitude, latitude, mesh_size = "80km")
   23. units:::as_units.character(mesh_size, "km")
   24. units:::as_units.call(expr, check_is_valid = check_is_valid)
  
  ── 2. Error: Failed (@test-find_city.R#34)  ────────────────────────────────────
  argument is not interpretable as logical
  Backtrace:
    1. testthat::expect_message(...)
   26. jpmesh::coords_to_mesh(longitude, latitude, mesh_size = "80km")
   28. units:::as_units.character(mesh_size, "km")
   29. units:::as_units.call(expr, check_is_valid = check_is_valid)
  
  ── 3. Error: city (@test-find_city.R#49)  ──────────────────────────────────────
  argument is not interpretable as logical
  Backtrace:
    1. jpndistrict::find_city(longitude = 130.4412895, latitude = 30.2984335)
   20. jpmesh::coords_to_mesh(longitude, latitude, mesh_size = "80km")
   22. units:::as_units.character(mesh_size, "km")
   23. units:::as_units.call(expr, check_is_valid = check_is_valid)
  
  ── 4. Failure: jpn_pref (@test-spdf_jpn.R#37)  ─────────────────────────────────
  sf::st_crs(df_pref) not identical to `crs_4326`.
  Names: 2 string mismatches
  Component 1: Modes: character, numeric
  Component 1: target is character, current is numeric
  Component 2: 1 string mismatch
  
  ── 5. Failure: jpn_pref (@test-spdf_jpn.R#48)  ─────────────────────────────────
  sf::st_crs(df_pref2) not identical to `crs_4326`.
  Names: 2 string mismatches
  Component 1: Modes: character, numeric
  Component 1: target is character, current is numeric
  Component 2: 1 string mismatch
  
  ── 6. Failure: jpn_cities (@test-spdf_jpn.R#79)  ───────────────────────────────
  sf::st_crs(df_city) not identical to `crs_4326`.
  Names: 2 string mismatches
  Component 1: Modes: character, numeric
  Component 1: target is character, current is numeric
  Component 2: 1 string mismatch
  
  trying URL 'http://nlftp.mlit.go.jp/ksj/gml/data/P34/P34-14/P34-14_47_GML.zip'
  Content type 'application/zip' length 9427 bytes
  ==================================================
  downloaded 9427 bytes
  
  options:        ENCODING=cp932 
  Reading layer `P34-14_47' from data source `/home/hornik/tmp/scratch/RtmpXhSKvl/P34-14_47_GML/P34-14_47.shp' using driver `ESRI Shapefile'
  Simple feature collection with 65 features and 4 fields
  geometry type:  POINT
  dimension:      XY
  bbox:           xmin: 123.0045 ymin: 24.06092 xmax: 131.2989 ymax: 27.03917
  geographic CRS: JGD2000
  ── 7. Error: reverge-geo coding (@test-util.R#130)  ────────────────────────────
  argument is not interpretable as logical
  Backtrace:
    1. jpndistrict:::which_pol_min(longitude = 130.4412895, latitude = 30.2984335)
   19. jpmesh::coords_to_mesh(longitude, latitude, mesh_size = "80km")
   21. units:::as_units.character(mesh_size, "km")
   22. units:::as_units.call(expr, check_is_valid = check_is_valid)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 65 | SKIPPED: 1 | WARNINGS: 15 | FAILED: 7 ]
  1. Error: prefecture (@test-find_city.R#5) 
  2. Error: Failed (@test-find_city.R#34) 
  3. Error: city (@test-find_city.R#49) 
  4. Failure: jpn_pref (@test-spdf_jpn.R#37) 
  5. Failure: jpn_pref (@test-spdf_jpn.R#48) 
  6. Failure: jpn_cities (@test-spdf_jpn.R#79) 
  7. Error: reverge-geo coding (@test-util.R#130) 
  
  Error: testthat unit tests failed
  Execution halted