title |
---|
Test ref.label and opts.label |
#> [1] 2
#> [1] 4
1:10
knitr::opts_template$set(skip = list(eval = FALSE), b = list(results = "markup",
prompt = TRUE))
Ignore chunk options on chunk a
:
1 + 1
## [1] 2
2 + 2
## [1] 4
Inherit chunk options from chunk a
:
#> [1] 2
#> [1] 4
Inherit chunk options from chunk a
:
#> [1] 2
#> [1] 4
Inherit chunk options from template b
and then chunk b
:
> 1 + 1
> 2 + 2
Inherit chunk options from chunk b
(no output) and a
(no source), so you see nothing below:
Same as the previous section---you see nothing below:
Inherit chunk options from chunk b
(no output) and a
(no source), and then override with echo = TRUE
:
> 1:10
> 1 + 1
> 2 + 2
Inherit code from chunk b
and a
, and chunk options from chunk a
(no source):
#> [1] 1 2 3 4 5 6 7 8 9 10
#> [1] 2
#> [1] 4
Inherit code from chunk b
and a
, and chunk options from template skip
(no evaluation):
1:10
1 + 1
2 + 2
Inherit code from chunk b
and a
, and chunk options from template skip
(ignore I()
in ref.label
since opts.label
is not empty):
1:10
1 + 1
2 + 2