Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Many tutorials online say that to include a table in Sweave one should write something like this:

<<output=tex>>=
require(xtable)
stuff
xtable(stuff)
@

That makes sense. But when I do that in LyX 2.1 on Ubuntu 10.04 with texlive-full 2011 installed (and pgfSweave 2.10), I get the following error:

invalid value for 'output' : tex
share|improve this question
    
result=tex similar error –  isomorphismes Oct 5 '11 at 9:59
add comment

1 Answer 1

Should work with results instead of result or output.

<<results=tex>>=

The Sweave documentation may also be helpful.

share|improve this answer
    
Slowly plodding my way through that. There are like 4 PDF's of necessary background for Sweave, each of them in an obscure style. –  isomorphismes Nov 26 '11 at 20:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.