How to display verbatim inline r code with backticks using Rmarkdown?

后端 未结 5 513
广开言路
广开言路 2020-12-08 19:49

By doubling the backticks in Markdown, it is easy to render some text in code style including the backticks, such as: `r 2+2`. But how to do that with RMark

5条回答
  •  自闭症患者
    2020-12-08 20:27

    The solution of Yihui Xie was not displaying the enclosing quotations in the inserted code when rendering a README.md file for a Github repository. In that case I used html code:

    `r foo(x)`
    

    Which displays `r foo(x)` inline.

提交回复
热议问题