问题
I recently updated my RStudio and while writing an R Markdown document in the Source Window, whenever I run a code in a chunk of the RMD, the output is shown in the source window itself in the following manner. It gets too messy when there are huge plots. Would like to disable this feature if possible and revert back to good old style of displaying output in the Console/Plot viewer window only.
Output executed and visible below the Chunk in the Source Window
Thanks
回答1:
Try this in Rstudio.
Tools > Global Options > R Markdown > Uncheck: Show output inline for all R Markdown Documents.
That should disable inline code chunk output when you're editing R Markdown documents.
Does that get you what you're asking?
回答2:
Looks like OP had his question answered, but if toggling "Show output line for all R Markdown Documents" has no effect, you may be dealing with the bug detailed here: Chunk output in console not always available. You'll have to uncheck that box, restart, and then select the option to "Chunk Output in Console" from the output menu before re-enabling the former setting.
来源:https://stackoverflow.com/questions/42350815/rstudio-disable-output-of-a-code-in-source-window-while-writing-rmarkdown-docum