tests/testthat/test-deploy.R

test_that('deploy to temp dir', {
  dir.create(file.path(tempdir(), "test_insane"), showWarnings = FALSE)
  expect_true(deploy(directory = file.path(tempdir(), "test_insane")))
  expect_false(deploy(directory = file.path(tempdir(), "test_insane")))
  expect_false(deploy(directory = file.path(tempdir(), "test_insane"), demo = TRUE))
  expect_true(deploy(directory = file.path(tempdir(), "test_insane"), demo = TRUE, overwrite = TRUE))
})

Try the insane package in your browser

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

insane documentation built on Nov. 15, 2023, 1:09 a.m.