Hi again: I could make tha package (in Windows 7) but it does not run in Mac.
Please could you tell me how to make a package in Windows PC with source code saved in utf-8 in the way the package runs on a Mac ? In my pc (where I create the package) : > l10n_info() $MBCS [1] FALSE $`UTF-8` [1] FALSE $`Latin-1` [1] TRUE $codepage [1] 1252 Thanks. Eva --- El sáb, 27/10/12, Eva Prieto Castro <evapcas...@yahoo.es> escribió: De: Eva Prieto Castro <evapcas...@yahoo.es> Asunto: Re: Encoding Para: r-help@r-project.org Fecha: sábado, 27 de octubre, 2012 08:48 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.