[R] Sweave/Rweave and results="verbatim"
Matthias Kohl
Matthias.Kohl at stamats.de
Sun Dec 14 19:14:07 CET 2008
it should work without quotes; i.e.,
results = verbatim
hth,
Matthias
Oliver Bandel wrote:
> Hello,
>
>
> in a Rnw-file I have this used stuff to try out tex-results...
>
>
> ==============================
> <<>>>=
> texme <- function() cat( "{\\bf Hallo, das ist voll fett!}\n" )
> @
>
> <<results="verbatim">>=
> texme()
> @
> ==============================
>
> I used this command: "R CMD Sweave example.Rnw"
>
>
> and got this error:
>
>
> ==============================
> [...]
> 7 : echo
> 8 : echo term verbatim (label=>)
> Error in match.arg(options$results, c("verbatim", "tex", "hide")) :
> 'arg' should be one of "verbatim", "tex", "hide"
> Calls: Sweave -> SweaveParseOptions -> check -> match.arg
> Execution halted
> ==============================
>
>
> What did I do wrong here?
>
>
> Any hint is welcome,
> Oliver
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Dr. Matthias Kohl
www.stamats.de
More information about the R-help
mailing list