tests/testthat/test-create_app.R

context("create_app")

test_that("create_app runs without errors.", {
  expect_error(create_app("myapp", app_dir = 1))
  expect_error(create_app("myapp", app_dir = tempdir(), dir_out = 1))
  expect_error(create_app("myapp", app_dir = tempdir(), include_R = 1))
  expect_error(create_app("myapp", app_dir = tempdir(), R_version = 1))
  expect_error(create_app("myapp", app_dir = tempdir(), R_version = "3.0.1"))
})

Try the RInno package in your browser

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

RInno documentation built on May 1, 2019, 10:52 p.m.