Re: [R] Hershey fonts for musical notation?

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed 03 Jan 2007 - 11:54:58 GMT

On Wed, 3 Jan 2007, Atte Tenkanen wrote:

[...]

> By the way, right now the demo(Hershey) seems not to work in OSX version R 2.4.1. ...
> I get a message
>
>> i <- i + 1
> Error in deparse(ei, control = c("showAttributes", "useSource")) :
> invalid multibyte string

But it does should work in R-devel, which deparses differently. The issue is the use of a UTF-8 locale and the Hershey byte codes are indeed an invalid string in such a locale. Here is a simple example in UTF-8.

> x <- "\301"
> x

[1]Error: invalid multibyte string

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch 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.
Received on Thu Jan 04 16:50:37 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 04 Jan 2007 - 06:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.