tests/testthat/test_app.R

## Test shiny app

library(iCOBRA)
context("Check that shiny app is generated")

test_that("Shiny app is generated", {
  expect_is(COBRAapp(), "shiny.appobj")
  expect_is(COBRAapp(cobradata_example), "shiny.appobj")

  expect_is(COBRAapp(autorun = TRUE), "shiny.appobj")
  expect_is(COBRAapp(cobradata_example, autorun = TRUE), "shiny.appobj")
})

Try the iCOBRA package in your browser

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

iCOBRA documentation built on April 17, 2021, 6:07 p.m.