我在使用Sweave时遇到了一个问题,输出的内容宽度无法控制。我的列表包含大量文本,在生成PDF文件时,R的回应超出了页面范围。我尝试使用标签进行调整,但是并没有解决问题。
但这并没有改变任何事情。
例如:设置列表(在LaTeX中不显示)。
有没有什么方式可以让这个工作正常运行,而不必通过
<<>>=
options(width=40)
@
但这并没有改变任何事情。
例如:设置列表(在LaTeX中不显示)。
<<echo=FALSE>>=
my_list <- list(example="Site location was fixed using a Silvia Navigator handheld GPS in October 2003. Point of reference used was the station Bench Mark. If the bench mark location was remote from the site then the point of reference used was changed to the 0-1 metre gauge. Bench Mark location was then recorded as a separate entry in the Site History section [but not used as the site location].\r\nFor a Station location map and all digital photograph's of the station, river reach, and site details see H:\\hyd\\dat\\doc. For non digital photo's taken prior to October 2003 please see the relevant station file at Tumut office.")
@
并展示列表的入口。
<<>>=
my_list
@
有没有什么方式可以让这个工作正常运行,而不必通过
cat
语句来分割列表。