tests/testthat/test-kobo_df_download.R

test_that("export created", {
  skip_on_cran()
  expect_true(is.data.frame(kobo_df_download(
    uname = "scaryscarecrow",
    pwd = "bqYNEj6ZRCPi4C6", assetid = "aufBcR7TaVeTd8vbzGLkfN",
    lang = "_default"
  )))
})


test_that("invalid input fails", {
  expect_true(is.null(kobo_df_download(
    uname = "scary_",
    pwd = "sy", assetid = "ahwQoXtnbQJB",
    lang = "English (en)"
  )))
})

Try the KoboconnectR package in your browser

Any scripts or data that you put into this service are public.

KoboconnectR documentation built on Sept. 11, 2024, 8:07 p.m.