You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering if its possible to also export such documents as Shinylive applications. When simply running shinylive::export("myapp", "site") with the myapp directory containing only an .Rmd file with interactive elements, it currently fails since there is neither an app.R nor server.R file present:
Error in shinylive::export("myapp", "site") :
Directory myapp does not contain an app.R or server.R file.
In the documentation of the interactive documents linked above it is mentioned that a server.R file is created when running the interactive notebook:
When you run an interactive document, rmarkdown extracts the code in your code chunks and places them into a pseudo server.R file. R Markdown uses the html output of the markdown file as an index.html file to place the reactive elements into.
However, I can't find the location where that file is stored, neither do I know if a "pseudo server.R file" is enough for shinylive.
The text was updated successfully, but these errors were encountered:
luukvdmeer
changed the title
Running interactive rmarkdown notebooks
Exporting interactive rmarkdown notebooks as Shinylive applications
Jan 29, 2024
By adding the
runtime: shiny
header you can build Shiny apps with RMarkdown documents: https://rmarkdown.rstudio.com/articles_interactive.htmlI am wondering if its possible to also export such documents as Shinylive applications. When simply running
shinylive::export("myapp", "site")
with the myapp directory containing only an.Rmd
file with interactive elements, it currently fails since there is neither anapp.R
norserver.R
file present:In the documentation of the interactive documents linked above it is mentioned that a
server.R
file is created when running the interactive notebook:However, I can't find the location where that file is stored, neither do I know if a "pseudo server.R file" is enough for shinylive.
The text was updated successfully, but these errors were encountered: