Skip to content
Back to formatted view

Raw Message

Message-ID: <47E0EF74.90303@stats.uwo.ca>
Date: 2008-03-19T10:48:20Z
From: Duncan Murdoch
Subject: Sweave does not parse \Sexpr{}
In-Reply-To: <458694.67569.qm@web23009.mail.ird.yahoo.com>

Werner Wernersen wrote:
> Hi,
>
> has anybody encountered and solved the following
> problem?
>
> I continued work now on a different computer where I
> have also used Sweave successfully before. I can run
> Sweave() and it generates a .tex file. All code chunks
> are processed and translated to Latex perfectly fine
> but somehow only the \Sexpr{} tags are not parsed. 
>
> This is an example .Rnw:
> \documentclass{article}
> \usepackage{Sweave}
> \begin{document}
> What is \Sexpr{3*3}?
> \end{document}
>   
> And this is the resulting .tex:
> \documentclass{article}
> \usepackage{Sweave}
> \begin{document}
> What is \Sexpr{3*3}?
> \end{document}
>
> Can anybody give me a hint what's wrong?
No.  That file works for me, and you've given no details about how you 
ran Sweave, what version you were using, etc.

Duncan Murdoch