Re: [R] Windows source in Linux

From: Alberto Vieira Ferreira Monteiro <albmont_at_centroin.com.br>
Date: Sat, 02 Jun 2007 01:36:27 +0000

Benilton Carvalho wrote:
>
> iconv on your linux box should do the work.
>
>> I have a "windows" source file.r, with the default charset of windows.
>> I can't use it in Linux as source("file.r"), because Linux's
>> default is
>> Unicode. How can I read it?
>
Soon after I posted, I found out how to do it.

source("file.r", encoding="latin1")

Anyway, thanks to the hint about iconv. I tried to find something like that using "apropos latin", but iconv was not there.

Alberto Monteiro



R-help_at_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. Received on Sat 02 Jun 2007 - 01:48:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 02 Jun 2007 - 02:31:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.