[R] Sweave: problem with usepackage{C:/PROGRA~1/R/R-27~1.0/share/texmf/Sweave}

Lauri Nikkinen lauri.nikkinen at iki.fi
Tue Jun 17 21:08:26 CEST 2008

R users,

I'm at a loss with a problem considering running .tex files produced
by Sweave. When I run (R 2.7.0):
#Taken from ?Sweave
testfile <- system.file("Sweave", "Sweave-test-1.Rnw", package = "utils")

## enforce par(ask=FALSE)

## create a LaTeX file

I get a .tex file:
% -*- mode: noweb; noweb-default-code-mode: R-mode; -*-

\title{A Test File}
\author{Friedrich Leisch}




A simple example that will run in any S engine: The integers from 1 to
10 are
 [1]  1  2  3  4  5  6  7  8  9 10

We can also emulate a simple calculator:

When I run this file Latex  Pdf using MikTeX 2.7 and TeXnicCenter I
get an error message. I know that it has something to do with


and '~' sign. How can I get pass this error?


More information about the R-help mailing list