You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# fig.align argument is not supported in Word (align in template docx)
if (knitr::opts_knit$get('rmarkdown.pandoc.to') == 'latex'){
opts_chunk$set(fig.align = "center")
}
produces the error Error in if (knitr::opts_knit$get("rmarkdown.pandoc.to") == "latex") { : argument is of length zero when run interactively
What part of your workflow has you running the skeleton.Rmd file interactively? Is that something that people are commonly doing? I've tried running parts of it interactively before, but it doesn't produce a report document or any visible output for most chunks, so I haven't found it to be particularly useful.
Do you encounter any problems with using insert_break(), insert_references_section_header(), or insert_ref() when running interactively? I ask because these also directly access knitr::opts_knit$get("rmarkdown.pandoc.to"). It looks like insert_ref() already has some NULL-handling. If we're wanting to support running the Rmds interactively, this might be a good time to make any needed fixes there as well.
the following code
produces the error
Error in if (knitr::opts_knit$get("rmarkdown.pandoc.to") == "latex") { : argument is of length zero
when run interactivelyThe text was updated successfully, but these errors were encountered: