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