Running ‘testthat.R’ [14s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("ncdfgeom")
  Loading required package: ncdfgeom
  ****Support Package****
  This package is a USGS-R Support package. 
  see: https://owi.usgs.gov/R/packages.html#support
  Linking to GEOS 3.6.3, GDAL 2.2.4, PROJ 5.2.0
  ── 1. Error: Create basic DSG file (@test_read-write_timeseries_dsg.R#20)  ─────
  RNetCDF was built without UDUNITS-2
  1: write_timeseries_dsg(nc_file, names(test_data$var_data), test_data$lats, test_data$lons, 
         as.character(test_data$time), test_data$var, test_data$alts, data_unit = test_data$units, 
         data_prec = "double", data_metadata = test_data$meta, attributes = global_attributes) at testthat/test_read-write_timeseries_dsg.R:20
  2: var.put.nc(nc, pkg.env$time_var_name, RNetCDF::utinvcal.nc(time_units, times))
  3: stopifnot(is.numeric(data) || is.character(data) || is.raw(data) || is.logical(data) || 
         is.list(data) || is.factor(data))
  4: RNetCDF::utinvcal.nc(time_units, times)
  5: utcal.nc("seconds since 1970-01-01 00:00:00 +00:00", as.vector(value), "n")
  
  ── 2. Error: soilmoisturetools data writes as expected (@test_read-write_timeser
  RNetCDF was built without UDUNITS-2
  1: write_timeseries_dsg(nc_file = tempfile(), instance_names = ok$station, lats = ok_meta$latitude, 
         lons = ok_meta$longitude, alts = ok_meta$elevation, times = ok$datetime[1], data = as.data.frame(array(ok$value, 
             dim = c(1, length(ok$value)))), data_unit = "percent", data_prec = "double", 
         attributes = attributes) at testthat/test_read-write_timeseries_dsg.R:304
  2: var.put.nc(nc, pkg.env$time_var_name, RNetCDF::utinvcal.nc(time_units, times))
  3: stopifnot(is.numeric(data) || is.character(data) || is.raw(data) || is.logical(data) || 
         is.list(data) || is.factor(data))
  4: RNetCDF::utinvcal.nc(time_units, times)
  5: utcal.nc("seconds since 1970-01-01 00:00:00 +00:00", as.vector(value), "n")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 687 | SKIPPED: 2 | WARNINGS: 32 | FAILED: 2 ]
  1. Error: Create basic DSG file (@test_read-write_timeseries_dsg.R#20) 
  2. Error: soilmoisturetools data writes as expected (@test_read-write_timeseries_dsg.R#304) 
  
  Error: testthat unit tests failed
  Execution halted