)? For what command is this an
option?
Thanks.
--Chris Ryan
Original message
Date: Sat, 6 Oct 2007 22:38:04 -0400 (EDT)
From: [EMAIL PROTECTED]
Subject: [R] how to use \Sexpr{} with sweave
To: [EMAIL PROTECTED]
I'm trying to learn Sweave. So far things are going well with the chunks
Hi,
this works for me (R 2.5.1, Linux):
echo=false=
data(airquality)
library(ctest)
kruskal.test(Ozone ~ Month, data = airquality)
@
Wir haben hier also \Sexpr{nrow(airquality)} Datenzeilen in airquality.
This works
\Sexpr{2+6}
I think the error is in your latex setup, not in R or Sweave.
[EMAIL PROTECTED] wrote:
I'm trying to learn Sweave. So far things are going well with the chunks of
code identified by =
But I'm having trouble with the in-line text use of \Sexpr.
Here is a short example .Rnw file:
\documentclass[12pt]{article}
\usepackage[margin=1.25in]{geometry}
Duncan--
The .tex file that you describe as output of Sweave(test.Rnw) is what I had
expected. But I get this .tex file when I run Sweave:
\documentclass[12pt]{article}
\usepackage[margin=1.25in]{geometry}
\usepackage{graphicx}
\usepackage{Sweave}
\begin{document}
\begin{Schunk}
I think some inadvertent cutting and pasting may have made my last e-mail
difficult to interpret. Here is the .tex file I get as output of Sweaving my
.Rnw file. Note that \Sexpr{2+6} appears where you get (and I want) simply
8.
\documentclass[12pt]{article}
5 matches
Mail list logo