Domenico Vistocco
2008-Sep-19 20:42 UTC
[R] two questions on Sweave (help in the output + warnings in the output)
Dear All,
I am working on some slides using LaTeX/Beamer and R/Sweave.
I have the two questions below (sorry if they are stupid or already
solved but I didn't find solutions on the web).
1) Using the following code:
\begin{frame}[containsverbatim]
<<echo=TRUE>>help('dim')
@
\end{frame}
I have only:
> help("dim")
on the slide. Is it possible to directly include in the slide the help
of the function?
2) Using the following code:
\begin{frame}[containsverbatim]
<<echo=TRUE>>1:5 + 1:3
@
I have in the slide:
> 1:5 + 1:3
[1] 2 4 6 5 7
How can I print also the related Warning message on the slide?
Thanks in advance for the help,
domenico