R/accessors.R

Defines functions length.registry

"[[.registry" <-
function(x, ...)
{
    if (missing(..1))
        x$get_entry()
    else
        x$get_entry(...)
}

"[.registry" <-
function(x, ...)
{
    if (missing(..1))
        x$get_entries()
    else
        x$get_entries(...)
}

length.registry <-
function(x)
    x$n_of_entries()

Try the registry package in your browser

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

registry documentation built on May 1, 2019, 8:23 p.m.