Programmatic equivalent to including a code chunk with a context in a runtime: shiny_prerendered document.

shiny_prerendered_chunk(context, code, singleton = FALSE)

Arguments

context

Context name (e.g. "server", "server-start")

code

Character vector with code

singleton

Collapse multiple identical versions of this chunk into a single chunk.