Site icon R-bloggers

Untoggle inline output in RMarkdown in RStudio

[This article was first published on R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

A lot of my class mates found themselves frustrated when updating to the newer versions of RStudio, because the output started showing inline, below the code, instead of in the console or Plots window as usual. Personally I like being able to see the output and the code at the same time, so I found out how to change back. It was pretty easy:

RMarkdown: turn off inline output

There are of course advantages to keeping the output inline as well. Being able to scroll through the R Markdown file and see not only the code but also the output is nice. I usually just knit to html for this, but that can take quite some time if it is a long script or if there is a lot of plotting going on, etc. Switching between inline and the old way is also a useful option.

 

 

The post Untoggle inline output in RMarkdown in RStudio was first shown

To leave a comment for the author, please follow the link and comment on their blog: R.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.