To have R chunk in line with text using knitr

前端 未结 2 498
Happy的楠姐
Happy的楠姐 2021-01-26 03:17

How to have R code (R chunk) inline with my text?

Example:

Please install the package by using install.packages(\"ISwR\")

wher

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-26 03:39

    You can use the 3 backticks ``` if you want the encapsulated code NOT to be executed inline . E.g.

    There were ```nrow(cars)``` cars studied
    

提交回复
热议问题