Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch render functions included in UI #4189

Open
simon-smart88 opened this issue Feb 7, 2025 · 0 comments
Open

Catch render functions included in UI #4189

simon-smart88 opened this issue Feb 7, 2025 · 0 comments

Comments

@simon-smart88
Copy link

I sometimes find myself doing this where I mistakenly use a renderX() in the UI:

library(shiny)

ui <- fluidPage(
  renderTable("table")
)

server <- function(input, output, session) {
  output$table <- renderTable("table")
}

shinyApp(ui, server)

Surprisingly, this doesn't produce any errors, unlike if you mix it up the other way round and put output$table <- tableOutput("table") in the server. Is there anything that could be done to catch it and issue a warning or an error? If not normally, then how about when devmode() is active?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant