Skip to content

Feature request: rmarkdown verbatim chunk / inline #61

@njtierney

Description

@njtierney

I'm frustrated when I want to show an rmarkdown chunk inside a rmarkdown document - in github, you can use four backticks and get the following:

```{r chunk-name, fig.align = "center"}
```

But this does not work for rmarkdown - @gadenbuie recently kindly reminded me of the trick from Yihui on how to shoe a verbatim chode chunk or inline E Expression

Describe the solution you'd like
I'd love for verbatim to have two options:

  • "Show verbatim code chunk", and
  • "Show verbatim inline R expression"

Describe alternatives you've considered

At the moment the alternative is for me to remember this in my head, which I don't, and I find it hard to have a clear conceptual framework to remember that

`r ''`

will break knitr's chunk parser and allow me to show the thing I want.

Additional context

I think that's about it - just, in general, thanks for writing this super nifty package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions