Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I show pdf output inside the RStudio viewer pane?

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?

like image 595
sammyramz Avatar asked Mar 03 '18 19:03

sammyramz


People also ask

How do I view output in RStudio?

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).

How do I view R Markdown in viewer?

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.

What is viewer pane RStudio?

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.

How do I create a PDF in RStudio?

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.


1 Answers

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.

like image 151
Riley Finn Avatar answered Oct 31 '22 00:10

Riley Finn