目前,我有一些代码,看起来像这样:在RStudio的R markdown中,如何防止源代码从pdf页面运行?
```{r, tidy=TRUE}
plot(DT$age, DT$height, xlab = "Age of participant in Trials", ylab = "Height of participant in Trials")
```
现在,这是我的理解是设置tidy
到TRUE
将使这样,当我一起编织的代码,该代码不会去跑步关闭页面,并自行换行。但是,当我执行类似上面的命令时,我零星地仍然会运行源代码显示。是否有另一个函数可以保证代码的包装?谢谢!
不是一个很好的解决方案,但尝试[这](http://tex.stackexchange.com/questions/41471/getting-sweave-code-块到住宿,内页,页边距)。 – jlhoward 2014-10-06 06:17:15
[knitr:如何防止输出中的文字环绕?]可能的重复(http://stackoverflow.com/questions/12176296/knitr-how-to-prevent-text-wrapping-in-output) – 2016-09-17 05:16:14