I know that this question has been asked repeatedly, but the usual solutions using eval(parse(text = x)) and get(x) have not been working for me.
I would like to store function arguments as either a string or in a list and pass them into a function:
library(shiny)
library(shinymanager)
library(shinythemes)
## this works but is not what i want
ui <- secure_app(
theme = shinytheme("flatly"),
tags_bottom = tags$h5("If you are having issues logging in - chill and order a pizza."),
fluidPage()
)
server <- function(input, output, session) {
}
shinyApp(ui = ui, server = server)
Something like this is what I want, which current does not work:
arguments <- "theme = shinytheme('flatly'),
tags_bottom = tags$h5('If you are having issues logging in - chill and order a pizza.')"
ui <- secure_app(
arguments,
fluidPage()
)
server <- function(input, output, session) {
}
shinyApp(ui = ui, server = server)