I am using Sweave
to generate output for some R analysis. Some of the code generates long lines that are run off the right margin when the .tex
file is compiled.
I have pasted an example Schunk
below and you can see how long some of the lines are. I think the Schunk
s are typeset as verbatim.
Is there a way to prevent these sections from running off the right margin?
Thank you.
\begin{Schunk}
\begin{Sinput}
> load("/media/working/working_files/R_working/survey_OM.RData")
> summary(lm(survey_OM$perc.OM[survey_OM$lake == "GTH 91" & survey_OM$depth ==
+ "hypo" & survey_OM$sed > 0] ~ survey_OM$sed[survey_OM$lake ==
+ "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0]))
\end{Sinput}
\begin{Soutput}
Call:
lm(formula = survey_OM$perc.OM[survey_OM$lake == "GTH 91" & survey_OM$depth ==
"hypo" & survey_OM$sed > 0] ~ survey_OM$sed[survey_OM$lake ==
"GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0])
Residuals:
Min 1Q Median 3Q Max
-1.62011 -0.63241 0.04838 0.61389 2.81551
Coefficients:
Estimate
(Intercept) 23.06997
survey_OM$sed[survey_OM$lake == "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0] -0.07520
Std. Error
(Intercept) 0.44174
survey_OM$sed[survey_OM$lake == "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0] 0.07685
t value
(Intercept) 52.226
survey_OM$sed[survey_OM$lake == "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0] -0.978
Pr(>|t|)
(Intercept) <2e-16
survey_OM$sed[survey_OM$lake == "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0] 0.338
(Intercept) ***
survey_OM$sed[survey_OM$lake == "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0]
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 1.004 on 23 degrees of freedom
(2 observations deleted due to missingness)
Multiple R-squared: 0.03996, Adjusted R-squared: -0.001778
F-statistic: 0.9574 on 1 and 23 DF, p-value: 0.338
\end{Soutput}