tests/testthat/test-XPolaris.R

data('exkansas')

plt <- xplot(exkansas)

img <- ximages(locations = exkansas,
               variables = c('clay'),
               statistics = c('mean'),
               layersdepths = c('0_5'))

soi <- xsoil(img)

test_that('no error plotting', {
  expect_false(inherits(plt, "try-error"))
})

test_that('no error downloading images', {
  expect_false(inherits(img, "try-error"))
})

test_that('no error extracting soil', {
  expect_false(inherits(soi, "try-error"))
})

Try the XPolaris package in your browser

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

XPolaris documentation built on Sept. 24, 2021, 1:07 a.m.