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
Given a directory with multiple Rmd containing runtime: shiny_prerendered, only one of the documents is served by rmarkdown::run. This behavior is different than we see with multiple runtime: shiny documents.
First file (named empty.Rmd):
---title: "empty.Rmd"output: html_documentruntime: shiny_prerendered---[second](second.Rmd)```{r, echo=FALSE}
textOutput("message")``````{r, context="server"}
output$message <- renderText({ "This is the empty.Rmd file"})```
Second file (named second.Rmd):
---title: "second.Rmd"output: html_documentruntime: shiny_prerendered---[empty](empty.Rmd)```{r, echo=FALSE}
textOutput("message")``````{r, context="server"}
output$message <- renderText({ "This is the second.Rmd file"})```
Launch the content with:
rmarkdown::run(file=NULL, dir=".")
Only one of the two files is served. In my case, it was always empty.Rmd (the alphabetically first file).
Both documents can be served if you change runtime: shiny_prerendered to runtime: shiny.
The expectations for rmarkdown::run (at least for runtime: shiny documents):
http://127.0.0.1:6500/ should serve one of the two applications (based on existing rmarkdown::run rules).
http://127.0.0.1:6500/empty.Rmd should serve the empty.Rmd application.
http://127.0.0.1:6500/second.Rmd should serve the second.Rmd application.
I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('rmarkdown'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/rmarkdown').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered:
I think this is a duplicate of #1576 which I recently asked @schloerke about. It is currently the way prerendered document are working as it will pre render the app UI before running based on one Rmd (or html) file.
Currently, the document to serve at the root url if not provided (default_file) is
The Rmd file if there is only one OR
index.Rmd or ui.Rmd (first one found) OR
First Rmd (alphetically ordered) with a shiny* runtime. OR
index.html or ui.html OR
the file provided
This logic is the same for both runtime but with prerendered not being able to render according to a new route as with runtime shiny (which render on the run unlike pre rendered). it seems only one Rmd makes sense for shiny prerendered document.
So this is definitly something to look into with the help of the shiny team if we want to support this.
Using rmarkdown 2.6
Given a directory with multiple Rmd containing
runtime: shiny_prerendered
, only one of the documents is served byrmarkdown::run
. This behavior is different than we see with multipleruntime: shiny
documents.First file (named
empty.Rmd
):Second file (named
second.Rmd
):Launch the content with:
Only one of the two files is served. In my case, it was always
empty.Rmd
(the alphabetically first file).Both documents can be served if you change
runtime: shiny_prerendered
toruntime: shiny
.The expectations for
rmarkdown::run
(at least forruntime: shiny
documents):http://127.0.0.1:6500/
should serve one of the two applications (based on existingrmarkdown::run
rules).http://127.0.0.1:6500/empty.Rmd
should serve theempty.Rmd
application.http://127.0.0.1:6500/second.Rmd
should serve thesecond.Rmd
application.By filing an issue to this repo, I promise that
xfun::session_info('rmarkdown')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rmarkdown')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: