Running ‘testthat.R’ [279s/342s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CoordinateCleaner)
  > 
  > test_check("CoordinateCleaner")
  trying URL 'http://packages.ropensci.org/src/contrib/rnaturalearthdata_0.2.0.tar.gz'
  Content type 'application/gzip' length 3061199 bytes (2.9 MB)
  ==================================================
  downloaded 2.9 MB
  
  * installing *source* package ‘rnaturalearthdata’ ...
  ** R
  ** data
  *** moving datasets to lazyload DB
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded
  * DONE (rnaturalearthdata)
  
  The downloaded source packages are in
  	'/tmp/Rtmpwd9P9C/downloaded_packages'
  trying URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_land.zip'
  Content type 'application/x-zip-compressed' length 69700 bytes (68 KB)
  ==================================================
  downloaded 68 KB
  
  OGR data source with driver: ESRI Shapefile 
  Source: "/tmp/Rtmpwd9P9C", layer: "ne_110m_land"
  with 127 features
  It has 3 fields
  trying URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/ne_50m_land.zip'
  Content type 'application/x-zip-compressed' length 457183 bytes (446 KB)
  ==================================================
  downloaded 446 KB
  
  ── 1. Error: cc_sea works (@test_coordinatelevel_functions.R#171)  ─────────────
  'exdir' does not exist
  1: expect_equal(sum(cc_sea(x = exmpl, value = "flagged")), 185) at testthat/test_coordinatelevel_functions.R:171
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: cc_sea(x = exmpl, value = "flagged")
  5: rnaturalearth::ne_download(scale = scale, type = "land", category = "physical", destdir = path, 
         load = FALSE)
  6: utils::unzip(zip_file, exdir = destdir)
  
  trying URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/ne_50m_urban_areas.zip'
  Content type 'application/x-zip-compressed' length 452644 bytes (442 KB)
  ==================================================
  downloaded 442 KB
  
  OGR data source with driver: ESRI Shapefile 
  Source: "/tmp/Rtmpwd9P9C", layer: "ne_50m_urban_areas"
  with 2143 features
  It has 4 fields
  Integer64 fields read as strings:  scalerank 
  trying URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/ne_50m_urban_areas.zip'
  Content type 'application/x-zip-compressed' length 452644 bytes (442 KB)
  ==================================================
  downloaded 442 KB
  
  ── 2. Error: cc_urb works (@test_coordinatelevel_functions.R#193)  ─────────────
  'exdir' does not exist
  1: expect_is(cc_urb(city_exmpl, value = "flagged"), "logical") at testthat/test_coordinatelevel_functions.R:193
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: cc_urb(city_exmpl, value = "flagged")
  5: rnaturalearth::ne_download(scale = "medium", type = "urban_areas", destdir = path, 
         load = FALSE)
  6: utils::unzip(zip_file, exdir = destdir)
  
  trying URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/ne_50m_land.zip'
  Content type 'application/x-zip-compressed' length 457183 bytes (446 KB)
  ==================================================
  downloaded 446 KB
  
  ── 3. Error: clean_coordinates produces correct output (@test_wrapper_functions.
  'exdir' does not exist
  1: clean_coordinates(x = exmpl) at testthat/test_wrapper_functions.R:18
  2: cc_sea(x, lon = lon, lat = lat, ref = seas_ref, scale = seas_scale, verbose = verbose, 
         value = "flagged")
  3: rnaturalearth::ne_download(scale = scale, type = "land", category = "physical", destdir = path, 
         load = FALSE)
  4: utils::unzip(zip_file, exdir = destdir)
  
  trying URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/ne_50m_land.zip'
  Content type 'application/x-zip-compressed' length 457183 bytes (446 KB)
  ==================================================
  downloaded 446 KB
  
  ── 4. Error: clean_coordinates countries argument produces correct output (@test
  'exdir' does not exist
  1: expect_equal(sum(clean_coordinates(x = exmpl, countries = "ISO3", tests = c("countries", 
         "seas"))$.summary), 0) at testthat/test_wrapper_functions.R:36
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: clean_coordinates(x = exmpl, countries = "ISO3", tests = c("countries", "seas"))
  5: cc_sea(x, lon = lon, lat = lat, ref = seas_ref, scale = seas_scale, verbose = verbose, 
         value = "flagged")
  6: rnaturalearth::ne_download(scale = scale, type = "land", category = "physical", destdir = path, 
         load = FALSE)
  7: utils::unzip(zip_file, exdir = destdir)
  
  trying URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/ne_50m_land.zip'
  Content type 'application/x-zip-compressed' length 457183 bytes (446 KB)
  ==================================================
  downloaded 446 KB
  
  ── 5. Error: CleanCoordinates work (@test_wrapper_functions.R#43)  ─────────────
  'exdir' does not exist
  1: expect_equal(sum(CleanCoordinates(exmpl)$.summary), 185) at testthat/test_wrapper_functions.R:43
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: CleanCoordinates(exmpl)
  5: clean_coordinates(x = x, lat = lat, lon = lon, countries = countries, tests = tests, 
         capitals_rad = capitals.rad, centroids_rad = centroids.rad, centroids_detail = centroids.detail, 
         inst_rad = inst.rad, outliers_method = outliers.method, outliers_mtp = outliers.mtp, 
         outliers_td = outliers.td, outliers_size = outliers.size, zeros_rad = zeros.rad, 
         capitals_ref = capitals.ref, centroids_ref = centroids.ref, country_ref = country.ref, 
         inst_ref = inst.ref, seas_ref = seas.ref, urban_ref = urban.ref, value = value, 
         verbose = verbose, report = report)
  6: cc_sea(x, lon = lon, lat = lat, ref = seas_ref, scale = seas_scale, verbose = verbose, 
         value = "flagged")
  7: rnaturalearth::ne_download(scale = scale, type = "land", category = "physical", destdir = path, 
         load = FALSE)
  8: utils::unzip(zip_file, exdir = destdir)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 103 SKIPPED: 0 FAILED: 5
  1. Error: cc_sea works (@test_coordinatelevel_functions.R#171) 
  2. Error: cc_urb works (@test_coordinatelevel_functions.R#193) 
  3. Error: clean_coordinates produces correct output (@test_wrapper_functions.R#18) 
  4. Error: clean_coordinates countries argument produces correct output (@test_wrapper_functions.R#36) 
  5. Error: CleanCoordinates work (@test_wrapper_functions.R#43) 
  
  Error: testthat unit tests failed
  Execution halted