tests/testthat/test-readEE.R

context("readEE")

exfile <- system.file("external/EarthExplorer_LS8.txt", package = "RStoolbox")
files <- list.files("testdata/earthexplorer", full = TRUE)

test_that("returned classes", {
    skip_on_cran()
    expect_is(ee <- readEE(files[1]), "data.frame")
    expect_is(ee <- readEE(files), "data.frame")
    expect_true(all(is.na(ee$Download.Link)))
    expect_is(ee <- readEE(exfile), "data.frame")
    expect_true(all(is.na(ee$Browse.Link)))
})
bleutner/RStoolbox documentation built on April 28, 2024, 8:27 a.m.