From ripley at stats.ox.ac.uk  Thu Jan 29 13:20:08 2004
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu Jan 29 13:20:24 2004
Subject: [Rd] \link{\url{anything}} gives Rdconv trouble (PR#6496)
In-Reply-To: <20040128212857.D900C1046B@slim.kubism.ku.dk>
Message-ID: <Pine.LNX.4.44.0401291214190.8835-100000@gannet.stats>

It is easy to trap, so I have done so.

You were just slightly impatient: it would have given an error eventually!

There's a problem that the allowed complexity has to be very high for 
certain operations (mark_brackets for one) since you can write very 
complex files.  The same code is used for \url{}, which cannot be complex.
If we ever rewrite Rdconv ....

Brian

On Wed, 28 Jan 2004 d.firth@warwick.ac.uk wrote:

> Full_Name: David Firth
> Version: 1.8.0
> OS: Mac OS 10.2.8
> Submission from: (NULL) (80.177.12.48)
> 
> 
> In .Rd files, we use \url{stuff} to refer to a URL on the web.  Just as the
> documentation says.
> 
> Perhaps this isn't a bug, then, but certainly it's a trap for the unwary.  If
> the construction
>    \link{url{something}}
> appears in a .Rd file, then 
>    Rdconv --type=html ...
> gets stuck and appears to grow and grow and grow...
> 
> My version of Perl is 5.6.0.
> 
> A warning in the documentation might be considered a fix for this, although it
> might reasonably be regarded as going too far in warning people against their
> own stupidity!  
> 
> Would it be better if it caused an error?  I have no idea what would be involved
> in trapping that, and obviously if it's not a simple matter then this is one for
> the trashcan.
> 
> David
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 
> 

-- 
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] \link{\url{anything}} gives Rdconv trouble (PR#6496)
Prof Brian Ripley