Re: [R] error in calling source(): invalid multibyte character in parser

2011-01-04 Thread Luca Meyer
How would I go by doing that? I have tried with: source("file.R", encoding="it_IT.UTF-8") But I get Error in file(file, "r", encoding = encoding) : unsupported conversion from 'it_IT.UTF-8' to '' Thanks, Luca PS: "it_IT.UTF-8" is what I get under locale when I run sessionInfo() Il giorno

Re: [R] error in calling source(): invalid multibyte character in parser

2011-01-04 Thread Prof Brian Ripley
On Tue, 4 Jan 2011, Luca Meyer wrote: How would I go by doing that? I have tried with: source("file.R", encoding="it_IT.UTF-8") But I get Error in file(file, "r", encoding = encoding) : unsupported conversion from 'it_IT.UTF-8' to '' Well, that is not the value I suggested -- so what not s

Re: [R] error in calling source(): invalid multibyte character in parser

2011-01-04 Thread Luca Meyer
It works fine, thanks. I was just wondering is there is anyway to include automatically the command you suggest as a default when I open R. Thanks, Luca Il giorno 03/gen/2011, alle ore 08.36, Phil Spector ha scritto: > Luca - > What happens why you type > > Sys.setlocale('LC_ALL','C') > >

Re: [R] error in calling source(): invalid multibyte character in parser

2011-01-03 Thread Prof Brian Ripley
On Mon, 3 Jan 2011, peter dalgaard wrote: On Jan 3, 2011, at 08:32 , Luca Meyer wrote: Being italians when writing comments/instructions we use accented letters - like à, ò, è, etc when running R scripts using such characters I get and error saying: invalid multibyte character in parse

Re: [R] error in calling source(): invalid multibyte character in parser

2011-01-03 Thread peter dalgaard
On Jan 3, 2011, at 08:32 , Luca Meyer wrote: > Being italians when writing comments/instructions we use accented letters - > like à, ò, è, etc when running R scripts using such characters I get and > error saying: > > invalid multibyte character in parser > > I have been looking at the he

Re: [R] error in calling source(): invalid multibyte character in parser

2011-01-02 Thread Phil Spector
Luca - What happens why you type Sys.setlocale('LC_ALL','C') before issuing the source command? - Phil Spector Statistical Computing Facility Department of Statistics

[R] error in calling source(): invalid multibyte character in parser

2011-01-02 Thread Luca Meyer
Being italians when writing comments/instructions we use accented letters - like à, ò, è, etc when running R scripts using such characters I get and error saying: invalid multibyte character in parser I have been looking at the help and searched the r-help archives but I haven't find anyth