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.
rmarkdown::render("Example.rmd", output_format = "pdf_document", output_file = "Example.pdf")
! LaTeX Error: Unknown float option `H'.
Error: LaTeX failed to compile . See https://yihui.org/tinytex/r/#debugging for
debugging tips. See rebalReport_ok2delete.log for more info.
(By the way the link to the debugging tips isn't working. )
Yet clicking the Knit button with Example.rmd works fine.