Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/schema/cell-textoutput.yml
12921 views
1
- name: output
2
tags:
3
contexts: [document-execute]
4
execute-only: true
5
schema:
6
anyOf:
7
- boolean
8
- enum: [asis]
9
# these are here for compatibility with rmarkdown output: yaml
10
- string
11
- object
12
description:
13
short: |
14
Include the results of executing the code in the output (specify `asis` to
15
treat output as raw markdown with no enclosing containers).
16
long: |
17
Include the results of executing the code in the output. Possible values:
18
19
- `true`: Include results.
20
- `false`: Do not include results.
21
- `asis`: Treat output as raw markdown with no enclosing containers.
22
23
- name: warning
24
tags:
25
contexts: [document-execute]
26
execute-only: true
27
schema: boolean
28
description: Include warnings in rendered output.
29
30
- name: error
31
tags:
32
contexts: [document-execute]
33
execute-only: true
34
schema: boolean
35
default: false
36
description: |
37
Include errors in the output (note that this implies that errors executing code
38
will not halt processing of the document).
39
40
- name: include
41
tags:
42
contexts: [document-execute]
43
execute-only: true
44
schema: boolean
45
default: false
46
description: |
47
Catch all for preventing any output (code or results) from being included in output.
48
49
- name: panel
50
schema:
51
enum: [tabset, input, sidebar, fill, center]
52
description: "Panel type for cell output (`tabset`, `input`, `sidebar`, `fill`, `center`)"
53
54
- name: output-location
55
tags:
56
formats: [revealjs]
57
schema:
58
enum: [default, fragment, slide, column, column-fragment]
59
description:
60
short: Location of output relative to the code that generated it (`default`, `fragment`, `slide`, `column`, or `column-location`)
61
long: |
62
Location of output relative to the code that generated it. The possible values are as follows:
63
64
- `default`: Normal flow of the slide after the code
65
- `fragment`: In a fragment (not visible until you advance)
66
- `slide`: On a new slide after the curent one
67
- `column`: In an adjacent column
68
- `column-fragment`: In an adjacent column (not visible until you advance)
69
70
Note that this option is supported only for the `revealjs` format.
71
72
- name: message
73
tags:
74
engine: knitr
75
schema:
76
enum: [true, false, NA]
77
default: true
78
description:
79
short: Include messages in rendered output.
80
long: |
81
Include messages in rendered output. Possible values are `true`, `false`, or `NA`.
82
If `true`, messages are included in the output. If `false`, messages are not included.
83
If `NA`, messages are not included in output but shown in the knitr log to console.
84
85
- name: results
86
tags:
87
engine: knitr
88
schema:
89
enum: [markup, asis, hold, hide, false]
90
default: markup
91
description:
92
short: "How to display text results"
93
long: |
94
How to display text results. Note that this option only applies to normal text output (not warnings,
95
messages, or errors). The possible values are as follows:
96
97
- `markup`: Mark up text output with the appropriate environments
98
depending on the output format. For example, if the text
99
output is a character string `"[1] 1 2 3"`, the actual output that
100
**knitr** produces will be:
101
102
```` md
103
```
104
[1] 1 2 3
105
```
106
````
107
108
In this case, `results: markup` means to put the text output in fenced
109
code blocks (```` ``` ````).
110
111
- `asis`: Write text output as-is, i.e., write the raw text results
112
directly into the output document without any markups.
113
114
```` md
115
```{r}
116
#| results: asis
117
cat("I'm raw **Markdown** content.\n")
118
```
119
````
120
121
- `hold`: Hold all pieces of text output in a chunk and flush them to the
122
end of the chunk.
123
124
- `hide` (or `false`): Hide text output.
125
126
- name: comment
127
tags:
128
engine: knitr
129
schema: string
130
default: "##"
131
description:
132
short: "Prefix to be added before each line of text output."
133
long: |
134
Prefix to be added before each line of text output.
135
By default, the text output is commented out by `##`, so if
136
readers want to copy and run the source code from the output document, they
137
can select and copy everything from the chunk, since the text output is
138
masked in comments (and will be ignored when running the copied text). Set
139
`comment: ''` to remove the default `##`.
140
141
- name: class-output
142
tags:
143
engine: knitr
144
schema:
145
maybeArrayOf: string
146
description: "Class name(s) for text/console output"
147
148
- name: attr-output
149
tags:
150
engine: knitr
151
schema:
152
maybeArrayOf: string
153
description: "Attribute(s) for text/console output"
154
155
- name: class-warning
156
tags:
157
engine: knitr
158
schema:
159
maybeArrayOf: string
160
description: "Class name(s) for warning output"
161
162
- name: attr-warning
163
tags:
164
engine: knitr
165
schema:
166
maybeArrayOf: string
167
description: "Attribute(s) for warning output"
168
169
- name: class-message
170
tags:
171
engine: knitr
172
schema:
173
maybeArrayOf: string
174
description: "Class name(s) for message output"
175
176
- name: attr-message
177
tags:
178
engine: knitr
179
schema:
180
maybeArrayOf: string
181
description: "Attribute(s) for message output"
182
183
- name: class-error
184
tags:
185
engine: knitr
186
schema:
187
maybeArrayOf: string
188
description: "Class name(s) for error output"
189
190
- name: attr-error
191
tags:
192
engine: knitr
193
schema:
194
maybeArrayOf: string
195
description: "Attribute(s) for error output"
196
197