Description Usage Arguments Details Value Examples
Replace top level output$name variable assignments with output__name__
1 | replace_output_w_tmp(code)
|
code |
code to modify |
During syntax tree shaking, list datastructures will retain any code affecting any single list element. In processing Shiny outputs, this results in retention of all output code even if only a subset of outputs is desired. To work around this behavior, list elements can be replaced with unique identifiers to decouple individual list elements.
code with assignments replaced
1 2 3 4 5 6 | q <- quote(output$name <- 3)
scriptgloss:::replace_output_w_tmp(q)
# {
# output__name__ <- 3
# }
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.