How to show output in console when writing an RMarkdown notebook?

人盡茶涼 提交于 2019-12-03 05:50:31
cadair

From the official website (emphasis by me):

By default, RStudio enables inline output (notebook mode) on all R Markdown documents, so you can interact with any R Markdown document as though it were a notebook. If you have a document with which you prefer to use the traditional console method of interaction, you can disable notebook mode by clicking the gear in the editor toolbar and choosing Chunk Output in Console.

This sets the chunk_output_type option in the YAML front-matter of your R Markdown document to console:

---
editor_options:
  chunk_output_type: console
---

Adding those lines to the YAML front-matter without clicking any GUI option will of course lead to the same result.

Under Options in Tools, choose the options for R Markdown, change the tick for "Show output inline...." to "untick". Good luck!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!