Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(kokudosuuchi)
  このサービスは、「国土交通省　国土数値情報（カテゴリ名）」をもとに加工者が作成
  以下の国土数値情報ダウンロードサービスの利用約款をご確認の上ご利用ください：
  
  http://nlftp.mlit.go.jp/ksj/other/yakkan.html
  > 
  > test_check("kokudosuuchi")
  1. Error: getKSJData works (@test-getData.R#6) ---------------------------------
  ../../cached_zip/L01-01_36_GML.zip doesn't exist
  1: getKSJData("http://nlftp.mlit.go.jp/ksj/gml/data/L01/L01-01/L01-01_36_GML.zip", cache_dir = cache_dir) at testthat/test-getData.R:6
  2: stop(glue::glue("{zip_file} doesn't exist"))
  
  2. Error: getKSJData with UTF-8 layers works (@test-getData.R#24) --------------
  ../../cached_zip/P12-14_06_GML.zip doesn't exist
  1: getKSJData("http://nlftp.mlit.go.jp/ksj/gml/data/P12/P12-14/P12-14_06_GML.zip", cache_dir = cache_dir) at testthat/test-getData.R:24
  2: stop(glue::glue("{zip_file} doesn't exist"))
  
  3. Error: getKSJData with UTF-8 layers with cached one works (@test-getData.R#31) 
  ../../cached_zip/P12-14_06_GML.zip doesn't exist
  1: expect_message({
         d <- getKSJData("http://nlftp.mlit.go.jp/ksj/gml/data/P12/P12-14/P12-14_06_GML.zip", 
             cache_dir = cache_dir)
     }, "Using the cached zip file") at testthat/test-getData.R:31
  2: capture_messages(object)
  3: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  4: getKSJData("http://nlftp.mlit.go.jp/ksj/gml/data/P12/P12-14/P12-14_06_GML.zip", cache_dir = cache_dir) at testthat/test-getData.R:31
  5: stop(glue::glue("{zip_file} doesn't exist"))
  
  testthat results ================================================================
  OK: 40 SKIPPED: 1 FAILED: 3
  1. Error: getKSJData works (@test-getData.R#6) 
  2. Error: getKSJData with UTF-8 layers works (@test-getData.R#24) 
  3. Error: getKSJData with UTF-8 layers with cached one works (@test-getData.R#31) 
  
  Error: testthat unit tests failed
  Execution halted