While knitting an R markdown document the inline code is printed 'as is', for example:
- The number of patients in the dataframe is `n_distinct(med1$patients)`.
Is knitted exactly the same:
- The number of patients in the dataframe is
n_distinct(med1$patients)
.
The code is not evaluated, rather the text is formatted as code. In a previous question someone suggested adding brackets but it doesn't work for me.
Any suggestions will be much appreciated.