Why does rendering a pdf from rmarkdown require closing rstudio between renders?
问题 Background I am trying to make a rmarkdown document that is rendered using render() . The render call has two elements that are parameterized: I would like the user to be able to specify pdf or html. Straightforward using output_format() . I also would like to pass a parameter to the document to specify if the tables (using the kableExtra package) are latex or html. This is the rmarkdown file called test.Rmd --- title: "Title" author: "Zzz Zzzzzz" params: table_format: value --- ```{r setup}