test_that("download_daily_grids_germany() works", {
f <- kwb.dwd:::download_daily_grids_germany
expect_error(f())
expect_error(f("x"))
capture.output(result <- f("evapo_p", quiet = TRUE))
expect_type(result, "character")
expect_true(all(sapply(result, file.exists)))
expect_true(all(endsWith(result, ".asc")))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.