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

shiny::includeMarkdown() breaks shiny live #127

Open
rbcavanaugh opened this issue Sep 2, 2024 · 1 comment
Open

shiny::includeMarkdown() breaks shiny live #127

rbcavanaugh opened this issue Sep 2, 2024 · 1 comment

Comments

@rbcavanaugh
Copy link

I'm trying to include some additional markdown text in a basic shiny live website. However, adding a bit of text using shiny::includeMarkdown() results in a blank white page in both Safari and Chrome. Inspecting the HTML shows an empty page:

image

See minimal example here: https://github.com/rbcavanaugh/shinylive-issue, where shinylive-start.R holds these two lines to run the app.

shinylive::export(here::here(), here::here("site"))
httpuv::runStaticServer("site/")

The Old Faithful app works fine per the example code (comment out the includeMarkdown() on app.R line 21.

Thanks!

@georgestagg
Copy link
Collaborator

It looks like the shiny::includeMarkdown() function is re-exporting htmltools::includeMarkdown(), which itself is calling out to markdown::mark(). Since markdown is listed only as a "Suggests" dependency of htmltools, it is not being downloaded by webR as your app starts up.

Please can you try manually installing the markdown package near the start of your app.R source, and then re-exporting?

library(shiny)
webr::install("markdown")

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

2 participants