If I want to delay the rendering in a child document of a Shiny - flexdashboard, I receive a title error and files Rplots?.pdf
. But only when I refresh the viewer.
Two Environments
R version 3.3.3 (2017-03-06)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 9 (stretch)
Rstudio Version 1.2.1335
R version 3.6.0 (2019-04-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)
Rstudio Version 1.2.1335
Main document test.rmd
---
title: "Test"
output: flexdashboard::flex_dashboard
runtime: shiny
---
```{r child = "test_child.rmd"}```
Child Document test_child.rmd
You should see the system time.
```{r}
rmarkdown::render_delayed({div(Sys.time())})```
When I press the button Run Document in Rstudio, the viewer opens with the expected display:
But when I press the refreshing button in the top right corner of the viewer (or resize the viewer), then I see this:
and the following error message
[WARNING] This document format requires a nonempty <title> element.
Please specify either 'title' or 'pagetitle' in the metadata,
e.g. by using --metadata pagetitle="..." on the command line.
Falling back to 'test.utf8'
In addition files Rplots?.pdf
are created.
New Child Document test_child.rmd
If I do not delay the rendering, no error message no Rplots?.pdf
files.
You should see the system time.
```{r}
div(Sys.time())```
What is going on ?