From maechler at stat.math.ethz.ch  Wed Jun  8 13:01:17 2016
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Wed, 8 Jun 2016 13:01:17 +0200
Subject: [Rd] Small mistake in ?raw
In-Reply-To: <575696E2.4060903@helsinki.fi>
References: <575696E2.4060903@helsinki.fi>
Message-ID: <22359.64253.313880.371318@stat.math.ethz.ch>

>>>>> Mikko Korpela <mikko.korpela at helsinki.fi>
>>>>>     on Tue, 7 Jun 2016 12:41:54 +0300 writes:

    > In ?raw (src/library/base/man/raw.Rd), the final line of Examples seems 
    > to be off:

    >> isASCII("\x9c25.63") # false (in Latin-1, this is an amount in UK pounds)

    > The character "\x9c" is a control character in Latin-1. Maybe the 
    > example should use "\xa3" instead:

    >> iconv("\x9c25.63", from = "latin1")
    > [1] "\u009c25.63"
    >> iconv("\xa325.63", from = "latin1")
    > [1] "?25.63"

Thank you, Mikko,  I've confirmed what you say  and changed the
comment  (and also added a tiny bit more to the ex. section).

Martin

    > -- 
    > Mikko Korpela
    > Department of Geosciences and Geography
    > University of Helsinki



[Rd] Small mistake in ?raw
Martin Maechler