tests/testthat/mod/issue76.r

f = function() {
    box::use(./a[...])
    helper()
}

g = function() {
    box::use(./a)
    helper()
}

h = function() {
    box::use(./a[`%.%`])
    helper()
}

ns = environment()

#' @export
helper_var = 0L

helper = function() { ns$helper_var = helper_var + 1L }

f()
g()
h()

Try the box package in your browser

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

box documentation built on May 2, 2023, 9:14 a.m.