Show R Code Modal
show_rcode_modal.Rd
Use the
shiny::showModal() function to show the R code inside.
Usage
show_rcode_modal(title = NULL, rcode, session = getDefaultReactiveDomain())Arguments
- title
(
character(1))
Title of the modal, displayed in the first comment of the R-code.- rcode
(
character)
vector with R code to show inside the modal. You can useteal.code::get_code()to derive this R code inside a module.- session
(
ShinySessionoptional)shinySession object, if missing thenshiny::getDefaultReactiveDomain()is used.