RStudio Knit - explicit R command for Preview option after Rmd is knit

If you’re going spelunking in the RStudio source code, this overview of how the parts fit together might be helpful:

The Viewer pane info @mara linked to is also on the nascent RStudio Extensions site, along with RStudio API documentation (such as it is thus far):