niklaswillrich
niklaswillrich
If I call dev.off() after plot() the figure is not inserted anymore. The main.md now looks like this: ```` ```r print("I am main.") ``` [1] "I am main." ```r res
@cderv yes, this is happening with rmarkdown::render too. If you replace `knitr::knit("main.Rmd")` with `rmarkdown::render("main.Rmd")` the plot is still shown inside the output.
Just as a clarification: dev.off() solves the problem for rmarkdown::render too.