Skip to content

Issue with spelling in Aquamacs

5 messages · Víctor Manuel García-Guerrero, Brian Ripley, johannes rara

#
I'm having the same problem with Aquamacs (I'm Aquamacs noob) and R. E.g.
Error in setwd("/Documents/T\344m\344") : cannot change working directory

Any ideas what's wrong?

-Johannes

2009/9/23 V?ctor Manuel Garc?a-Guerrero <vicmgg at gmail.com>:
#
On Wed, 23 Sep 2009, johannes rara wrote:

            
You've not (neither of you) told us the 'at a minimum' information 
required in the posting guide, so you have made it unnecessarily 
difficult to help you debug your mistakes.  This is a symptom of 
sending (e.g.) latin-1 text to R running in a UTF-8 locale.  So check 
sessionInfo() (run in the same way you send these commands) and check 
the encoding of your Aquamacs buffers.

And I suspect you are using ESS to send code from Aquamacs to R, so 
see the R FAQ Q6.1 for where to ask for further help.

  
    
#
Thanks for the response. I set language to german, and my sessioninfo
is shown below. Setting language to german (in Aquamacs) did not
change this behaviour.
R version 2.9.2 (2009-08-24)
i386-apple-darwin8.11.1

locale:
C

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

- Johannes

2009/9/23 Prof Brian Ripley <ripley at stats.ox.ac.uk>:
2 days later
#
I found the solution. I ran in Terminal.app
and after that edited .bash_profile by adding these lines into it:

export LC_ALL=fi_FI.UTF-8
export LANG=fi_FI.UTF-8

Now everything works fine and sessionInfo() looks like this
R version 2.9.2 (2009-08-24)
i386-apple-darwin8.11.1

locale:
fi_FI.UTF-8/fi_FI.UTF-8/C/C/fi_FI.UTF-8/fi_FI.UTF-8

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

-Johannes

2009/9/23 johannes rara <johannesraja at gmail.com>: