rmFromRegistryByUid-character-method: Remove From Registry (character)

Description Usage Arguments Value Author(s) References See Also Examples

Description

See generic: rmFromRegistryByUid

Usage

1
2
## S4 method for signature 'character'
rmFromRegistryByUid(uid, ...)

Arguments

uid

character.

...

Further arguments to be passed to subsequent functions/methods.

where

environment.

Value

See method rmFromRegistryByUid-character-character-environment-method

Author(s)

Janko Thyson janko.thyson@rappster.de

References

http://github.com/Rappster/reactr

See Also

rmFromRegistryByUid

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## Not run: 

## Set reactives so registry contains elements //  
id_1 <- "x_1"
id_2 <- "x_2"
where <- environment()

setReactive(id = id_1, value = 10)
setReactive(id = id_2, value = function() {
  .ref_1 <- get("x_1", envir = where)
})

## Comput UIDs //
uid_1 <- computeObjectUid(id = id_1, where = where)
uid_2 <- computeObjectUid(id = id_2, where = where)

## Inspect current state of registry //
registry <- getRegistry()
showRegistry()
exists(uid_1, registry)
exists(uid_2, registry)

## Remove //
rmFromRegistryByUid(uid = uid_1)
exists(uid_1, registry)
rmFromRegistryByUid(uid = uid_2)
exists(uid_2, registry)


## End(Not run)

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