0
使用和knitr
生成pdf文件時,如何避免R
控制檯輸出文本溢出到邊距?例如,使用R markdown和knitr時避免將文本溢出到頁邊距
---
title: "Illustration"
author: "Temp"
date: "Monday, April 06, 2015"
output: pdf_document
---
Spilling of R output.
```{r}
library("tm")
data("acq")
str(acq)
```
您可以設置打印輸出的寬度。 – 2015-04-06 12:37:39
查看knitr選項:http://yihui.name/knitr/options/ – 2015-04-06 12:46:46
@RomanLuštrik用'''{r set-options,cache = FALSE}調整寬度 options(width = 50) rnorm 100) data(「tm」) data(「acq」) str(acq) ''' 但是調整隻發生在'rnorm(100)'上。它被'str(acq)'忽略。 – Crops 2015-04-07 05:15:56