tests/testthat/test_pull_local.R

library(odkr)
context("Test output of pull_local")

dirPath <- tempdir()
get_briefcase(destination = dirPath)

pull_local(target = dirPath,
           id = "stakeholders",
           from = system.file("odk", package = "odkr"),
           to = dirPath)

test_that("ODK Briefcase Storage exists", {
  expect_true(file.exists(paste(dirPath, "/ODK Briefcase Storage", sep = "")))
})

Try the odkr package in your browser

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

odkr documentation built on Feb. 11, 2018, 3:10 p.m.