Debian Codegraph @

tests/shiny/03-rm-all.Rmd

raw
1 ---
2 title: 'rm(list = ls())'
3 output: html_document
4 runtime: shiny
5 ---
6
7 Before rmarkdown 0.9.2, an error would occur:
8
9 > Error in dir.exists: object 'resource_folder' not found
10
11 To repro:
12
13 ```r
14 devtools::install_version('rmarkdown', '0.9.2')
15 ```
16
17 And run this document.
18
19 ```{r}
20 rm(list = ls())
21 shinyApp(
22 ui = basicPage('Hello world'),
23 server = function(input, output) {
24 }
25 )
26 ```
27
28 This issue was fixed in https://github.com/rstudio/rmarkdown/pull/624, and again in https://github.com/rstudio/rmarkdown/commit/67eaa7aa6a.