R/options.R

sets_options <-
local({
    options <- list(quote = TRUE, hash = TRUE, openbounds = "()")
    function(option, value) {
        if (missing(option)) return(options)
        if (missing(value))
            options[[option]]
        else
            options[[option]] <<- value
    }
})

Try the sets package in your browser

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

sets documentation built on May 29, 2024, 10:09 a.m.