-
Notifications
You must be signed in to change notification settings - Fork 4
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
Possible to run a simple Shiny app? #7
Comments
@joshcullen approach to be taken would likely be to use the ```{shinylive-r}
#| standalone: true
#| components: [editor, viewer]
# app code from your example
``` Alternatively, you can embed the shinylive editor website directly into a presentation, c.f. ## shinylive REPL
```{=html}
<iframe allow="cross-origin-isolated" style="display:block; margin: 0 auto;" width="90%" height="75%" src="https://shinylive.io/r/editor">
</iframe>
``` Swap the |
Yes, I definitely think the right way to do this is using shinylive, as @coatless describes above. The intention for this extension is really just to provide a simple scratch pad for impromptu scripting, rather than supporting complex applications such as Shiny apps. For that reason I'm going to close this issue in favor of pointing towards the quarto-shinylive extension. EDIT: The quarto-shinylive GitHub readme doesn't make it clear, but it also works with R Shiny apps. Updating the docs to reflect this is on our radar. |
This seems like a really great extension, especially for teaching purposes!
Not sure if it's possible to run a Shiny app with the way things are set up, but I received a
Error in utils::browseURL(appUrl) : 'browser' must be a non-empty character string
and wasn't able to resolve the error by specifyingshinyApp(ui, server, options = list(launch.browser = TRUE))
. Do you know if there's an argument that can be specified to resolve this? Below is the example code I used for the app:The text was updated successfully, but these errors were encountered: