rmReactiveByUid-character-method: Remove Reactive Object (character)

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

Description

See generic: rmReactiveByUid

Usage

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

Arguments

uid

character.

...

Further arguments to be passed to subsequent functions/methods.

Value

See method rmReactiveByUid-character-method

Author(s)

Janko Thyson janko.thyson@rappster.de

References

http://github.com/Rappster/reactr

See Also

Generic: rmReactiveByUid

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
## Not run: 

setReactive(id = "x_1", value = 10)
isReactive("x_1")
setReactive(id = "x_2", value = function() "object-ref: {id: x_1}")

unsetReactiveByUid(uid = computeObjectUid("x_1"))
isReactive("x_1")
## --> `x_1` is now a regular/non-reactive object again

## Actual values still identical //
x_1
identical(x_2, x_1)

## Implications for objects referencing `x_1` //
x_1 <- 20
x_1
x_2
## --> no reactive binding to `x_1` anymore

setReactive(id = "x_2", value = function() "object-ref: {id: x_1}",
              strict_get = 1)
x_1 <- 10
x_2


## End(Not run)

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