From ripley at stats.ox.ac.uk  Fri Jul  4 20:06:42 2003
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri Jul  4 20:06:45 2003
Subject: [Rd] (PR#3400)
In-Reply-To: <200307041745.h64HjBJH009366@pubhealth.ku.dk>
Message-ID: <Pine.LNX.4.44.0307041901220.15382-100000@gannet.stats>

On Fri, 4 Jul 2003 Martin.Schlather@uni-bayreuth.de wrote:

> 
> Martin Maechler asked me to restate my problem.
> 
> Compiling the file (slightly modified w.r.t. the formerly
> attached file) that can be found at
>      http://www.geo.uni-bayreuth.de/~martin/filetransfer/xswms2d.Rd
> terminates with the error message
> 
> ******* Syntax error: mismatched or missing brackets in
> /-----
>   .....
> \-----
> 
> when compiled by
>     R CMD Rdconv -t txt xswms2d.Rd
> 
> However, the file does not cause any error after deleting the
> line
>       \item{a}{4}
> (line 530), for example. This line is within the simple
> environment
>      \itemize{
>        \item{a}{1} % if this line or
>        \item{a}{2} % this line or
>        \item{a}{3} % this line or
>        \item{a}{4} % this line is deleted no error occurs
>      }
> 
> Although there might be an error in my Rd code, the

There was, BTW: you had code inside an \itemize that was in no \item.

> appearance (or not appearance) of the error message is
> surprising, and the reason for the error is not clear
> from the message.

It does look like a bug, although as the FAQ asks, please don't report
diagnoses, especially in the subject line.

-- 
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


[Rd] (PR#3400)
Prof Brian Ripley