Describe the bug
When r.sessionWatcher is on, when user calls knitr::knit() with a Rmd document with plot commands, the existing plot file stored by R session watcher will be open after the function completes.
To Reproduce
- Create a Rmd document (e.g.
doc1.Rmd) with the following content:
# hello
Hello, world!
```{r}
plot(rnorm(100))
```
- Call
knitr::knit("doc1.Rmd")
- When the function call completes, no plot file appears.
- Call
plot(rnorm(10)) and the plot file is open. Close this file.
- Call
knitr::knit("doc1.Rmd") again and the previous plot file is open too.
Describe the bug
When
r.sessionWatcheris on, when user callsknitr::knit()with a Rmd document with plot commands, the existing plot file stored by R session watcher will be open after the function completes.To Reproduce
doc1.Rmd) with the following content:knitr::knit("doc1.Rmd")plot(rnorm(10))and the plot file is open. Close this file.knitr::knit("doc1.Rmd")again and the previous plot file is open too.