Learn R Programming

blockr.core (version 0.1.3)

trim_rv: Remove entries from a reactiveValues object

Description

shiny offers no public way to delete a key from a shiny::reactiveValues() object -- assigning NULL stores a NULL value but leaves the key in names(). trim_rv() removes the named entries outright and invalidates the affected reactive dependencies, so a key can be truly dropped (and later re-added) -- for instance when a variadic block argument is unlinked.

Usage

trim_rv(x, rm)

Value

x, invisibly.

Arguments

x

A reactiveValues object.

rm

Character vector of keys to remove; all must be present in x.