Path: blob/main/src/resources/schema/cell-textoutput.yml
12921 views
- name: output1tags:2contexts: [document-execute]3execute-only: true4schema:5anyOf:6- boolean7- enum: [asis]8# these are here for compatibility with rmarkdown output: yaml9- string10- object11description:12short: |13Include the results of executing the code in the output (specify `asis` to14treat output as raw markdown with no enclosing containers).15long: |16Include the results of executing the code in the output. Possible values:1718- `true`: Include results.19- `false`: Do not include results.20- `asis`: Treat output as raw markdown with no enclosing containers.2122- name: warning23tags:24contexts: [document-execute]25execute-only: true26schema: boolean27description: Include warnings in rendered output.2829- name: error30tags:31contexts: [document-execute]32execute-only: true33schema: boolean34default: false35description: |36Include errors in the output (note that this implies that errors executing code37will not halt processing of the document).3839- name: include40tags:41contexts: [document-execute]42execute-only: true43schema: boolean44default: false45description: |46Catch all for preventing any output (code or results) from being included in output.4748- name: panel49schema:50enum: [tabset, input, sidebar, fill, center]51description: "Panel type for cell output (`tabset`, `input`, `sidebar`, `fill`, `center`)"5253- name: output-location54tags:55formats: [revealjs]56schema:57enum: [default, fragment, slide, column, column-fragment]58description:59short: Location of output relative to the code that generated it (`default`, `fragment`, `slide`, `column`, or `column-location`)60long: |61Location of output relative to the code that generated it. The possible values are as follows:6263- `default`: Normal flow of the slide after the code64- `fragment`: In a fragment (not visible until you advance)65- `slide`: On a new slide after the curent one66- `column`: In an adjacent column67- `column-fragment`: In an adjacent column (not visible until you advance)6869Note that this option is supported only for the `revealjs` format.7071- name: message72tags:73engine: knitr74schema:75enum: [true, false, NA]76default: true77description:78short: Include messages in rendered output.79long: |80Include messages in rendered output. Possible values are `true`, `false`, or `NA`.81If `true`, messages are included in the output. If `false`, messages are not included.82If `NA`, messages are not included in output but shown in the knitr log to console.8384- name: results85tags:86engine: knitr87schema:88enum: [markup, asis, hold, hide, false]89default: markup90description:91short: "How to display text results"92long: |93How to display text results. Note that this option only applies to normal text output (not warnings,94messages, or errors). The possible values are as follows:9596- `markup`: Mark up text output with the appropriate environments97depending on the output format. For example, if the text98output is a character string `"[1] 1 2 3"`, the actual output that99**knitr** produces will be:100101```` md102```103[1] 1 2 3104```105````106107In this case, `results: markup` means to put the text output in fenced108code blocks (```` ``` ````).109110- `asis`: Write text output as-is, i.e., write the raw text results111directly into the output document without any markups.112113```` md114```{r}115#| results: asis116cat("I'm raw **Markdown** content.\n")117```118````119120- `hold`: Hold all pieces of text output in a chunk and flush them to the121end of the chunk.122123- `hide` (or `false`): Hide text output.124125- name: comment126tags:127engine: knitr128schema: string129default: "##"130description:131short: "Prefix to be added before each line of text output."132long: |133Prefix to be added before each line of text output.134By default, the text output is commented out by `##`, so if135readers want to copy and run the source code from the output document, they136can select and copy everything from the chunk, since the text output is137masked in comments (and will be ignored when running the copied text). Set138`comment: ''` to remove the default `##`.139140- name: class-output141tags:142engine: knitr143schema:144maybeArrayOf: string145description: "Class name(s) for text/console output"146147- name: attr-output148tags:149engine: knitr150schema:151maybeArrayOf: string152description: "Attribute(s) for text/console output"153154- name: class-warning155tags:156engine: knitr157schema:158maybeArrayOf: string159description: "Class name(s) for warning output"160161- name: attr-warning162tags:163engine: knitr164schema:165maybeArrayOf: string166description: "Attribute(s) for warning output"167168- name: class-message169tags:170engine: knitr171schema:172maybeArrayOf: string173description: "Class name(s) for message output"174175- name: attr-message176tags:177engine: knitr178schema:179maybeArrayOf: string180description: "Attribute(s) for message output"181182- name: class-error183tags:184engine: knitr185schema:186maybeArrayOf: string187description: "Class name(s) for error output"188189- name: attr-error190tags:191engine: knitr192schema:193maybeArrayOf: string194description: "Attribute(s) for error output"195196197