Displaying 1 result from an estimated 1 matches for "sim_pi".
Did you mean:
sil_pi
2012 Apr 14
1
Sweave UFT8 problem
Hi,
I work on MacOS, trying to Sweave an UFT8 document.
AFAI remember R 2.14 used to render a warning when the encoding was not
declared when using Sweave.
With R 2.15 it seems to render an error.
Sweave("sim_pi.Rnw")
Error: 'sim_pi.Rnw' is not ASCII and does not declare an encoding
Declaring an encoding by adding a line like
\usepackage[utf8]{inputenc}
in the preamble does the job. In my case though the .Rnw document does no
have a preamble as it is just one chapter.
All chapters are Sweav...