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
Give warning when runApp is called within runApp #1358
Comments
This works fine for me. I've seen that error before when reloading shiny in a development session. If you used |
Oh wait, I just saw your edit. So you're calling |
Yes, I think that's what's happening. Would also explain the error the error message, since PS What I ended up doing is renaming the file (no longer |
…e of an app's app.R (or inside ui.R or server.R).
Fixes #1358: more informative error message when calling runApp inside of an app's app.R
EDIT: sorry, figured out the real problem, the 'Run App' button calls runApp with as argument the directory, however if you have an
app.R
with some customshinyApp
calls it fails. So in the example below if you simple select all and execute, it works fine. But you should not use the 'Run App' button.In the documentation for
shinyApp
one of the examples shows how to make a shinyApp from an 'an explicit UI/server pair', however this example doesn't work. The example in question iswhich fails with
The text was updated successfully, but these errors were encountered: