If I knit my document, I get the pdf output in the RStudio: View PDF window, which usually pops up or refreshes on command.
Is it possible for this viewer to be located inside RStudio, in the bottom right pane, for example?
Rendering output Better still, use the “Knit” button in the RStudio IDE to render the file and preview the output with a single click or keyboard shortcut (⇧⌘K).
You can preview your file by using the shortcut shift + ctrl + k on rmarkdown::render("file. Rmd", params = "ask") (or shift + command + k for Mac). It does work when I knit the . Rmd document.
The RStudio IDE includes a Viewer pane that can be used to view local web content. For example, web graphics generated using packages like googleVis, htmlwidgets, and rCharts, or even a local web application created using Shiny, Rook, or OpenCPU. Note that the Viewer pane can only be used for local web content.
Having saved your R Markdown file, it's time to process it and generate a PDF file. You can do this by clicking the Knit PDF button above the text. Your PDF file will be generated and opened as shown below.
Just change your output to html_document instead of pdf_document and then change it back to pdf when you are finished. That's what @J_F is doing but forgot to mention it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With