tests/testthat/test-get_SDA_muaggatt.R

test_that("get_SDA_muaggatt works", {
  skip_if_offline()

  skip_on_cran()
  
  res <- get_SDA_muaggatt(areasymbols = c("CA077", "CA630"))
  
  skip_if(is.null(res))
  
  expect_equal(nrow(res), length(unique(res$mukey)))
  expect_equal(nrow(get_SDA_muaggatt(mukeys = c(461994, 461995))), 2)
})

Try the soilDB package in your browser

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

soilDB documentation built on June 22, 2024, 9:53 a.m.