Trying to set Knitr 'document' output hook results in code chunk line breaks being lost
问题 I've been reading all the documentation and examples I can find for Knitr's output hooks for editing the output of the document. I'm using Knitr to process a .Rmd file, which looks like this: [SOME_SHORTCODE_TO_BE_REPLACED] (I eventually want this to be replaced by Knitr when it parses the document) ```{r echo=TRUE, eval=FALSE} data1 <- rnorm(10, mean = 0, sd = 10) data2 <- rnorm(10, mean = 2, sd = 2) model <- lm(data1 ~ data2) summary(model) ``` If I run opts_chunk$set(tidy = FALSE) knit