tests/testthat/utils.r

#' utils.r

#' set_foo: sets an arbitrary attribute (foo) of an object to 'bar'
#'    foo = 'bar'

set_foo <- function(x, value="bar") {
    attr(x,'foo') = 'bar'
    return(x)
}

Try the sticky package in your browser

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

sticky documentation built on April 14, 2020, 6:34 p.m.