tests/testthat/test_zzz.R

context("zzz")

test_that("onLoad works", {

    # Provide code coverage
    iSEE:::.onLoad()

    # To make an "expect_" statement, we would have to toy with shiny internals.
    
    # directoryPath <- normalizePath(shiny:::.globals$resourcePaths[["iSEE"]][["path"]])
    # expectedPath <- normalizePath(system.file("www", package="iSEE"))
    # expect_identical(directoryPath, expectedPath)

})

Try the iSEE package in your browser

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

iSEE documentation built on Feb. 3, 2021, 2:01 a.m.