Limit Output of Function in Rstudio (3.1.1) when Knitting to PDF

心不动则不痛 提交于 2019-12-05 06:13:41

Something like this??

```{r R.options=list(max.print=10)}
df <- data.frame(x=1:100,y=1:100)
df
```

The R.options chunk option in knitr allows you to set any of R's options locally for that chunk. Look at ?options for a list of the options you can set

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!