From ripley at stats.ox.ac.uk  Mon Feb 14 11:00:52 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon Feb 14 11:01:09 2005
Subject: [Rd] formatC with illegal input crashes Rgui (PR#7686)
In-Reply-To: <20050211175824.5EB48DEE7@slim.kubism.ku.dk>
References: <20050211175824.5EB48DEE7@slim.kubism.ku.dk>
Message-ID: <Pine.LNX.4.61.0502140956020.29523@gannet.stats>

We'll fix this, but you might like to note that sprintf is more
bulletproof and as from 2.1.0-to-be, a lot more tolerant, e.g.

sprintf("%s", 1)

works there and in 2.0.1 gives a useful error message.

On Fri, 11 Feb 2005 ehlers@math.ucalgary.ca wrote:

> Full_Name: Peter Ehlers
> Version: rw2001pat (2005-02-03)
> OS: Win XP
> Submission from: (NULL) (136.159.61.115)
>
>
> formatC(1, flag="s") crashes Rgui.
> Similarly for flag=[SnZ].
> Stupid input, of course, but I'm error-prone.

-- 
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] formatC with illegal input crashes Rgui (PR#7686)
Prof Brian Ripley