Re: [R] how to use \Sexpr{} with sweave

2007-10-09 Thread cryan
one know where I should put "options(SweaveSyntax="SweaveSyntaxNoweb")?" 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

Re: [R] how to use \Sexpr{} with sweave

2007-10-07 Thread cryan
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} \usepackage[margin=1.25in]{

Re: [R] how to use \Sexpr{} with sweave

2007-10-07 Thread cryan
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} \begin{Sinp

Re: [R] how to use \Sexpr{} with sweave

2007-10-07 Thread Duncan Murdoch
[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]{

Re: [R] how to use \Sexpr{} with sweave

2007-10-07 Thread Friedrich Schuster
Hi, this works for me (R 2.5.1, Linux): <>= 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. ryancw

[R] how to use \Sexpr{} with sweave

2007-10-06 Thread cryan
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} \usepackage{graphicx} \usepack