tests/testthat/helper.R

cc = function(x) {
    cat(as.character(x))
}

fake_session = structure(
    list(
        input = list(select = "a"),
        sendCustomMessage = function(type, message) x <<- message
    ), class = "MockShinySession")

Try the inshiny package in your browser

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

inshiny documentation built on Feb. 14, 2026, 5:06 p.m.