Running ‘testthat.R’ [62s/68s]
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. Failure: prefecture (@test-find_city.R#10)  ──────────────────────────────
  sf::st_crs(test) 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
  
  ── 2. 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
  
  ── 3. 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
  
  ── 4. 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 `/tmp/Rtmpg1HsEy/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
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 94 | SKIPPED: 1 | WARNINGS: 25 | FAILED: 4 ]
  1. Failure: prefecture (@test-find_city.R#10) 
  2. Failure: jpn_pref (@test-spdf_jpn.R#37) 
  3. Failure: jpn_pref (@test-spdf_jpn.R#48) 
  4. Failure: jpn_cities (@test-spdf_jpn.R#79) 
  
  Error: testthat unit tests failed
  Execution halted