tests/testthat/test-zzz-external.R

test_that("FilePath", {
    file <- tools::file_path_sans_ext(
        system.file("extdata/shapefiles/cerrado/cerrado_forested.shp",
            package = "sits"
        )
    )
    expect_false("shp" %in% file)
})

test_that("Unique", {
    labels <- unique(cerrado_2classes$label)
    expect_true("Cerrado" %in% labels)
})

Try the sits package in your browser

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

sits documentation built on Nov. 2, 2023, 5:59 p.m.