Skip to content
Back to formatted view

Raw Message

Message-ID: <49454CEF.8020508@stamats.de>
Date: 2008-12-14T18:14:07Z
From: Matthias Kohl
Subject: Sweave/Rweave and results="verbatim"
In-Reply-To: <1229277867.49454aabae0ca@webmail.in-berlin.de>

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