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

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

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.