resetRegistry: Reset Registry (generic)

Description Usage Arguments Author(s) References See Also Examples

Description

Resets the registry located in getOption("reactr")$.registry.

Usage

1

Arguments

where

Signature argument. Object containing registry location information.

...

Further arguments to be passed to subsequent functions/methods.

Author(s)

Janko Thyson janko.thyson@rappster.de

References

http://github.com/Rappster/reactr

See Also

resetRegistry-environment-method, rmFromRegistryByUid

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 

## Set reactives so registry has entries //  
setReactive(id = "x_1", value = 10)
setReactive(id = "x_2", value = function() {
  .ref_1 <- get("x_1")
})

## Inspect current state of registry //
registry <- getRegistry()
showRegistry()
## --> two entries corresponding to invisible objects associated to `x_1` 
## and `x_2`

## Reset //
resetRegistry()
showRegistry()
## --> empty 


## End(Not run)

rappster/reactr documentation built on May 26, 2019, 11:56 p.m.