[OS X Emacs] multibyte character

Ravi Valluru valluru at supagro.inra.fr
Fri Oct 8 04:00:45 EDT 2010

Dear All,

I am new to Aquamacs, and am using on Mac OS X platform, essentially  
to process R scripts. I got an error for locale, and I changed to  
en_US.UTF-8 using Sys.setlocale("LC_ALL", "en_US.UTF-8") in R GUI  
(within Aquamacs). I also adding extra code to encode the file like  
suffixing (fileEncoding = "latin1").

Now R is reading the file and data correctly, which contains some  
special characters like "µ" (micro), for example,
  [1] "Geno"          "Treat"         "Pn_µmol.m_.s"  "Rd_µmol.m_.s"

but when I use the factor separately, it is showing some error...

Error: invalid multibyte character in parser at line 1

When I use in the R GUI (outside Aquamacs), it is reading correctly. I  
have no idea what is the problem. Can somebody can help me to solve  
this problem.

 > sessionInfo()
R version 2.11.1 (2010-05-31)

[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/C

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods
[8] base

other attached packages:
[1] SuppDists_1.1-8 agricolae_1.0-9 gplots_2.8.0    caTools_1.10
[5] bitops_1.0-4.1  gdata_2.7.2     gtools_2.6.2    RODBC_1.3-2

Thanks in advance

Ecophysiologie des Plantes sous Stress Environnementaux (LEPSE),
UMR INRA-SUPAGRO, Institut de Biologie Intégrative des Plantes
2, place Viala, 34060 Montpellier cedex 1, FRANCE
tel +33 (0)4 99 61 29 56
fax +33 (0)4 67 52 21 16

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20101008/7ca8bb41/attachment.html>

More information about the MacOSX-Emacs mailing list