[R] New problem printing °C in plots

Patrick Connolly p.connolly at hortresearch.co.nz
Tue Feb 1 23:52:40 CET 2005


> version
         _
platform i686-pc-linux-gnu
arch     i686
os       linux-gnu
system   i686, linux-gnu
status
major    2
minor    0.1
year     2004
month    11
day      15
language R
> paste("25", "°C", sep = "")
[1] "25\302\260C"

In ESS, I get  "25\201\260C"

The °C does end up in the plot alright, but it has an accented A as
well which is not useful.

(The '°C' I get from within Emacs using C - x 8 - o)
GNU Emacs 21.3.1



In earlier versions, I used to get this:

> version
         _
platform i686-pc-linux-gnu
arch     i686
os       linux-gnu
system   i686, linux-gnu
status
major    1
minor    8.1
year     2003
month    11
day      21
language R
> paste("25", "°C", sep = "")
[1] "25°C"
>

That plotted fine.  I can't remember if the problem existed with
R-2.0.0 and I didn't notice a mention the NEWS file/s -- but that
could be because I didn't know what to look for.

Could this be purely an Emacs problem, or does it have to do with
changes in R-2.x.x?

TIA

-- 
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand 
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it.  ---Steven Wright 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~




More information about the R-help mailing list