1

I can't find the official documentation for R Markdown YAML frontmatter, for example for this option:

editor_options:
  chunk_output_type: console

I've looked into R Markdown: The Definitive Guide (which, by the way, it's the book linked from the official R Markdown website) but it's not there.

I've looked into R Markdown Cookbook, it's hinted at here but doesn't look like the official reference.

I've looked into R Markdown Reference guide, it's not there.

I've looked into R Markdown Cheatsheet, it's not there.

Maël
  • 45,206
  • 3
  • 29
  • 67
robertspierre
  • 3,218
  • 2
  • 31
  • 46
  • It was implemented in this pull request https://github.com/rstudio/rstudio/pull/1007. There was a comment there that it should have been included in the "R Notebook docs" though I'm not sure where that is or if it ever made it there. It may be an undocumented feature. – MrFlick Jul 12 '23 at 13:12

1 Answers1

3

There is no official documentation for R Markdown YAML frontmatter because the YAML frontmatter is a collection of metadata and each individual piece of data might or not be used by a piece of software from your tool chain. The mentioned metadata,

editor_options:
  chunk_output_type: console

is used by R Studio to have the code block output "be shown in the R console instead of inside the source editor". This option might be ignored by VSCode or Emacs.

Raniere Silva
  • 2,527
  • 1
  • 18
  • 34