Description Usage Arguments Value Author(s) References See Also Examples
See generic: checkReactivityPrerequisites
1 2 3 | ## S4 method for signature 'ReactiveShinyObject'
checkReactivityPrerequisites(input = NULL,
strict = 0, ...)
|
input |
|
strict |
|
... |
Further arguments to be passed to subsequent functions/methods. |
See method
checkReactivityPrerequisites-ReactiveObject.S3-method
.
Janko Thyson janko.thyson@rappster.de
http://github.com/Rappster/reactr
checkReactivityPrerequisites,
setReactive
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 31 32 | ## Not run:
## NOTE
## This function has a strong internal character as it is mainly designed to
## be used inside of 'setReactive()'.
## Thus not all aspects can be properly illustrated if the function is not
## used in its default context
## Start with a fresh registry state //
resetRegistry()
suppressWarnings(rm(x_1))
input <- reactr::ReactiveObject.S3(
id = "x_1",
value = 10
)
## Error reason: object does not exist yet //
try(checkReactivityPrerequisites(input = input, strict = 2))
## Error reason: object exists but is non-reactive //
x_1 <- 10
try(checkReactivityPrerequisites(input = input, strict = 2))
## Error reason: reactive object already exists //
## This cannot be illustrated outside the context of 'setReactive()'
## All prerequisites met //
checkReactivityPrerequisites(input = input)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.