Running 'testthat.R' [72s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(CoordinateCleaner)
  > 
  > test_check("CoordinateCleaner")
  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 308 KB
  
  -- 1. Error: CleanCoordinates work (@test_wrapper_functions.R#45)  -------------
  Cannot open data source
  1: expect_equal(sum(CleanCoordinates(exmpl)$.summary), 185) at testthat/test_wrapper_functions.R:45
  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", load = TRUE)
  8: rgdal::readOGR(destdir, file_name, encoding = "UTF-8", stringsAsFactors = FALSE, 
         use_iconv = TRUE)
  9: suppressMessages(ogr_info <- ogrInfo(dsn = dsn, layer = layer, encoding = encoding, 
         use_iconv = use_iconv, swapAxisOrder = swapAxisOrder, require_geomType = require_geomType))
  10: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  11: ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv, swapAxisOrder = swapAxisOrder, 
         require_geomType = require_geomType)
  
  == testthat results  ===========================================================
  OK: 20 SKIPPED: 14 FAILED: 1
  1. Error: CleanCoordinates work (@test_wrapper_functions.R#45) 
  
  Error: testthat unit tests failed
  Execution halted