Consider the following RMarkdown document, which has fenced code inside an enumeration:
* An enumeration item with code:
```{r}
"Hello"
```
‘lintr’ has the spurious complaint
mwe.rmd:4:2: style: [indentation_linter] Indentation should be 0 spaces but is 2 spaces.
"Hello"
~^
When removing the indent (which works, but is unconventional) and knitting the document, ‘knitr’ reinserts the indent in the output Markdown document.
Consider the following RMarkdown document, which has fenced code inside an enumeration:
‘lintr’ has the spurious complaint
When removing the indent (which works, but is unconventional) and knitting the document, ‘knitr’ reinserts the indent in the output Markdown document.