test_that("read_binary_radolan_file_raw_v3() works", {
f <- kwb.dwd:::read_binary_radolan_file_raw_v3
expect_error(f())
expect_error(expect_warning(f("no-such-file")))
# Create a non-valid test file
file <- tempfile("test-")
writeLines("this is a test", file)
expect_error(f(file))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.