Essentially my question is "What's the difference between clicking Knit from within RStudio and using the rmarkdown::render function? Or perhaps it should be: what command in a script is the same as clicking Knit in rStudio? I thought it was rmarkdown::render, but that's where I ran into trouble.
I can knit a particular .rmd file but get an error using the render function. Apologies for not being able to provide the code in the .rmd but it's sensitive. Here's the code from the r script.
Updated knitr to 1.31 from 1.3. tinytex and rmarkdown were already up to date. That worked. Under global options, 'use tinytex when compiling .tex files' is not checked? Should it be?
It is not required that this is checked. It is useful is you use RStudio IDE to compile .tex file directly and want to benefit from tinytex feature like auto installing of missing package.
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it: