tests/testthat/test_byTileAOP.R

context("byTileAOP")
library(neonUtilities)

test_that("Test that unequal length easting and northing vectors return error", {
  expect_error(byTileAOP(dpID="DP3.30015.001", site="WREF", year=2017,
                         easting=571000, northing=c(5079000,5080000)),
               "Easting and northing vector lengths do not match, and/or contain null values. Cannot identify paired coordinates.")
})

Try the neonUtilities package in your browser

Any scripts or data that you put into this service are public.

neonUtilities documentation built on Oct. 18, 2023, 9:09 a.m.