Nothing
test_that("bfs_get_data_comments() works", {
if (!curl::has_internet()) {
skip("No internet connection")
}
df <- BFS::bfs_get_data_comments(
number_bfs = "px-x-1502040100_131",
language = "en",
delay = 10
)
expect_s3_class(df, "data.frame")
})
test_that("bfs_get_data_comments() query argument", {
if (!curl::has_internet()) {
skip("No internet connection")
}
df <- BFS::bfs_get_data_comments(
number_bfs = "px-x-1502040100_131",
language = "en",
delay = 10,
query = list(
"Jahr" = c("40", "41"),
"Studienstufe" = c("2", "3"),
"Geschlecht" = c("0", "1")
))
expect_s3_class(df, "data.frame")
})
test_that("bfs_get_data_comments() query argument not list", {
if (!curl::has_internet()) {
skip("No internet connection")
}
expect_error(BFS::bfs_get_data_comments(
number_bfs = "px-x-1502040100_131",
language = "en",
delay = 10,
query = data.frame()
))
})
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.