I don't run the program this way so I don't know. But it makes me wonder if the problem is with \Sexpr{} or the way she is trying to run Sweave and compile. So, is it possible that code chunks are working but not \Sexpr{}?

If you have something like

<<>>=
R code here
@

Do you get that output?



-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch on behalf of Duncan Murdoch
Sent: Wed 12/20/2006 10:05 PM
To: Blanchard, Suzette
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] \Sexpr in MikTex
 
On 12/20/2006 6:26 PM, Blanchard, Suzette wrote:
> Greetings,   \Sexpr{} has worked on MikTex with earlier versions of R, I can not seem to get it to work with
> R-2.4.0.  I run Sweave with MikTex using the following statement in Run under Accessories. 
> latex -include-directory="C:\Program Files\R\R-2.4.0\share\texmf" "C:\Documents and Settings\Suzette\Desktop\MyFile\MyProgram.tex"

There should be two hyphens in the option, i.e. --include-directory, 
shouldn't there?

This should be automatically put in place if you used

R CMD Sweave MyProgram.tex

from a command line.

Duncan Murdoch

>  
> Any advice would be much appreciated,
> Suzette
>  
>  
> Suzette Blanchard, Ph.D.
> Assistant Professor, Dept. of Biostatistics
> City of Hope National Medical Center
>   and Beckman Research Institute
> 1500 East Duarte Road, Duarte, CA 91010-3000
> sblanchard@coh.org <mailto:sblanchard@coh.org> 
> ph: (626) 256-4673 ext: 64446
>  
> 
> "EMF <COH.org>" made the following annotations.
> ------------------------------------------------------------------------------
> SECURITY/CONFIDENTIALITY WARNING:  This message and any atta...{{dropped}}
> 
> ______________________________________________
> R-help@stat.math.ethz.ch 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.

______________________________________________
R-help@stat.math.ethz.ch 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.


	[[alternative HTML version deleted]]

