From ripley at stats.ox.ac.uk  Thu Sep 14 04:06:57 2006
From: ripley at stats.ox.ac.uk (Prof Brian D Ripley)
Date: Thu, 14 Sep 2006 03:06:57 +0100 (GMT Daylight Time)
Subject: [Rd] demo names with spaces?
In-Reply-To: <4508AA6C.8000609@DecisionSynergy.com>
References: <4508AA6C.8000609@DecisionSynergy.com>
Message-ID: <Pine.WNT.4.64.0609140302120.3584@Petrel>

There are two issues here:

1) file names with spaces are not supported, and indeed you cannot
install such a package on Windows.  Because make is used, this is
pretty fundamental.

2) The parsing code for 00Index used by 'check' assumes whitespace 
separates the name and the title.  In index files generated by R the 
separator is a tab, but demo indices are hand-crafted.

You can use underlines in the file and demo names.

On Wed, 13 Sep 2006, Dominick Samperi wrote:

> Does R support demo names with spaces?
>
> I tried placing a file like "My Demo Name.R" in
> the demo subdirectory, and placing a line that
> begins with "My Demo Name" in 00Index, but
> R CMD check does not like this. It reads the
> line in 00Index as "My, and it doesn't think there
> is a 00Index entry for "My Demo Name".
>
> I have no problem going back to MyDemoName.R,
> but I'm curious to know if there is support for
> names containing spaces.

-- 
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] demo names with spaces?
Prof Brian D Ripley