tests/testthat/test-data.R

d <- st_datasets()

test_that("dataset list returns as expected", {
  expect_is(d, "data.frame")
  expect_equal(dim(d), c(10, 2))
})

test_that("st_books_wiki returns as expected", {
  skip_on_cran()
  skip_on_travis()
  expect_is(st_books_wiki(), "NULL")
})

Try the rtrek package in your browser

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

rtrek documentation built on Sept. 15, 2023, 1:06 a.m.