From ripley at stats.ox.ac.uk  Thu Oct 19 08:26:19 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 19 Oct 2006 07:26:19 +0100 (BST)
Subject: [Rd] Warnings about unrecognized escapes in Rd
In-Reply-To: <m2hcy1djj3.fsf@ziti.local>
References: <m24pu1icue.fsf@ziti.local> <x2hcy11hc7.fsf@turmalin.kubism.ku.dk>
	<m2r6x5gwyc.fsf@ziti.local> <m2hcy1djj3.fsf@ziti.local>
Message-ID: <Pine.LNX.4.64.0610190721210.4048@gannet.stats.ox.ac.uk>

On Wed, 18 Oct 2006, Seth Falcon wrote:

> Seth Falcon <sfalcon at fhcrc.org> writes:
>
>> Peter Dalgaard <p.dalgaard at biostat.ku.dk> writes:
>>> Er, do you have a minimal example showing the behaviour? It's not
>>> quite clear whether you have this happening everywhere or only in
>>> example sections, formulas or...?
>>
>> Oups.  The example I was looking at has \_ in a number of places in
>> the Rd files so perhaps the warning is correct (in which case, my
>> apologies for the noise).
>>
>> I'll look into it further.
>>
>> Of course it would be easier to detect this if the warning message
>> gave more information about where the problem was encountered ;-)
>
> Just to complete the thread: I was wrong, R was warning about
> unrecognized escape sequences in example and usage sections, not
> documentation text.

This warning comes from the parser, and only when parsing quoted 
strings.  That is why it is hard to give any more information about where 
the error is: the parser does not know much about where in the input it 
is.  (You can't even easily give the current string as you are in the 
middle of parsing it: I am working on that one.)

>
> Sorry for the noise.
>
> + seth
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at 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




[Rd] Warnings about unrecognized escapes in Rd
Prof Brian Ripley