在RMarkdown文件中工作时,我最终需要在每个要显示的语句后调用%>% pander
,以便以pander创建的漂亮格式显示结果。
有没有办法让RMarkdown / knitr自动将所有结果发送到pander以确定它应该如何打印?
```{r}
# default output looks bad
USJudgeRatings
```
```{r}
library(magrittr)
library(pander)
# With pander it looks much nicer
panderOptions('table.split.table', Inf)
USJudgeRatings %>% pander
```