Nothing
test_that("edl_download", {
skip_on_cran()
skip_if_offline()
edl_unset_netrc()
url <- lpdacc_example_url()
f <- tempfile(pattern = "HSL", fileext = ".tif")
edl_download(url, f)
expect_true(file.exists(f))
r <- terra::rast(f)
expect_true(inherits(r, "SpatRaster"))
unlink(f)
})
test_that("edl_download via token", {
skip_on_cran()
skip_if_offline()
edl_unset_netrc()
url <- lpdacc_example_url()
f <- tempfile(fileext = ".tif")
edl_download(url, f, auth="token", method = "httr")
expect_true(file.exists(f))
r <- terra::rast(f)
expect_true(inherits(r, "SpatRaster"))
unlink(f)
})
test_that("edl_download, netrc+curl", {
skip_on_cran()
skip_if_offline()
edl_unset_netrc()
url <- lpdacc_example_url()
f <- tempfile(fileext = ".tif")
edl_download(url, f, auth = "netrc", method = "curl", quiet = TRUE)
expect_true(file.exists(f))
r <- terra::rast(f)
expect_true(inherits(r, "SpatRaster"))
unlink(f)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.