Hi,

I solved the problem as follows:

source(file="example.R", encoding="UCS-2")

Thanks

Eva

--- El sáb, 27/10/12, Eva Prieto Castro <evapcas...@yahoo.es> escribió:

De: Eva Prieto Castro <evapcas...@yahoo.es>
Asunto: Encoding
Para: r-help@r-project.org
Fecha: sábado, 27 de octubre, 2012 07:34

Hi,

I work with R on Windows, so I use ANSI encode; but when I run my projects on a 
linux or mac pc, It fails, so I change the encoding to unicode (in the same mac 
pc) and runs ok.

The problema is that I need tu make the package in mi pc (windows) and when I 
save my sources as unicode it fails: I make source("mydile.R") and it return 
tle following:

Error en eval(expr, envir, enclos) : objeto 'ÿþ' no encontrado

How can I resolve it?. I need to make the package in a windows pc ant it may 
run ok on all the OS.

Thanks in advance.

Eva

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to