| Version: | 6.2.0 |
|---|---|
| Manual group: | Universal Ctags |
| Manual section: | 7 |
RMarkdown parser is an exclusive subparser stacked on top of the Markdown parser. It works when:
The RMarkdown parser extends the way of detecting codeblocks from the Markdown parser. This extension is for running guest parsers on code chunks.
The Markdown parser expects the following syntax represents codeblocks:
```language-name
...
```
For an example
```r
...
```
The RMarkdown parser accepts the following syntax for code chunks:
```{language-name chunk-label, ...}
...
```
For an example
```{r precalc fig.height=4}
...
```
Give --extras=+{guest} for enabling guest to command line if you want to run proper parsers on lines inside code chunks.
The parser extracts chunk labels coming after language-name as chunklabel kind objects. In the example, the RMarkdown parser extracts precalc as a chunklabel kind object. The chunklabel kind is enabled by default.
"input.rmd"
"output.tags" with "--options=NONE --extras=+{guest} --fields=+KZln -o - input.rmd"
ctags(1), ctags-client-tools(7), ctags-lang-r(7), R Markdown: The Definitive Guide