Is there a mechanism that determines where in a document a knited .RMD opens?

rmarkdown
knitr
rmd

#1

When I click knit to pdf it automatically opens my pdf but sometimes in seemingly random places. Is there way to set this?


#2

If I’m re-knitting after edits, it typically opens to wherever it is I made said edit in the document. However, I would imagine that overriding this would vary by your output format, viewer settings (view in pane, view in window), and likely graphics device as well.

https://yihui.name/knitr/