Full_Name: L. Petr?k Version: 2.2 OS: w2k Submission from: (NULL) (193.109.177.11) # rcmd build Translation-it * checking for file 'Translation-it/DESCRIPTION' ... OK * preparing 'Translation-it': * checking DESCRIPTION meta-information ... ERROR Malformed package name See the information on DESCRIPTION files in section 'Creating R packages' of the 'Writing R Extensions' manual. ====char "-" is not alowed in package name (bug in 'build' script or 'utils.R' or 'manuals/R-ext')
petrakl at zce.cz writes:> Full_Name: L. Petr?k > Version: 2.2 > OS: w2k > Submission from: (NULL) (193.109.177.11) > > > # rcmd build Translation-it > * checking for file 'Translation-it/DESCRIPTION' ... OK > * preparing 'Translation-it': > * checking DESCRIPTION meta-information ... ERROR > Malformed package name > > See the information on DESCRIPTION files in section 'Creating R > packages' of the 'Writing R Extensions' manual. > > ====> char "-" is not alowed in package name (bug in 'build' script or 'utils.R' or > 'manuals/R-ext')Why is that a bug? The documentation clearly says what is allowed and this isn't: The Package and Version fields give the name and the version of the package, respectively. The name should consist of letters, numbers, and the dot character and start with a letter. The version is a sequence of at least two (and usually three) non-negative integers separated by single . or - characters. The canonical form is as shown in the example, and a version such as 0.01 or 0.01.0 will be handled as if it were 0.1-0. If we allowed "-" in names, the first thing that would happen is that we get bug reports that library(Translation-it) causes weird error messages. -- O__ ---- Peter Dalgaard ?ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
>>>>> "petrakl" == petrakl <petrakl at zce.cz> >>>>> on Wed, 16 Nov 2005 10:10:46 +0100 (CET) writes:petrakl> Full_Name: L. Petr?k petrakl> Version: 2.2 petrakl> OS: w2k petrakl> Submission from: (NULL) (193.109.177.11) petrakl> # rcmd build Translation-it petrakl> * checking for file 'Translation-it/DESCRIPTION' ... OK petrakl> * preparing 'Translation-it': petrakl> * checking DESCRIPTION meta-information ... ERROR petrakl> Malformed package name petrakl> See the information on DESCRIPTION files in section 'Creating R petrakl> packages' of the 'Writing R Extensions' manual. if you do what this error message tells you, you should quickly find>> The `Package' and `Version' fields give the name and the version of >> the package, respectively. The name should consist of letters, >> numbers, and the dot character and start with a letter. ...............Hence it's clear that the character "-" is not allowed in a package name. So why do you think this is a bug ? petrakl> ==== petrakl> char "-" is not alowed in package name (bug in petrakl> 'build' script or 'utils.R' or 'manuals/R-ext') Regards, Martin Maechler, ETH Zurich
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-1563048805-1132142703=:11543 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 16 Nov 2005 maechler at stat.math.ethz.ch wrote:>>>>>> "petrakl" =3D=3D petrakl <petrakl at zce.cz> >>>>>> on Wed, 16 Nov 2005 10:10:46 +0100 (CET) writes: > > petrakl> Full_Name: L. Petr=E1k > petrakl> Version: 2.2 > petrakl> OS: w2k > petrakl> Submission from: (NULL) (193.109.177.11) > > > petrakl> # rcmd build Translation-it > petrakl> * checking for file 'Translation-it/DESCRIPTION' ... OK > petrakl> * preparing 'Translation-it': > petrakl> * checking DESCRIPTION meta-information ... ERROR > petrakl> Malformed package name > > petrakl> See the information on DESCRIPTION files in section 'Creating R > petrakl> packages' of the 'Writing R Extensions' manual. > > if you do what this error message tells you, > you should quickly find > >>> The `Package' and `Version' fields give the name and the version of >>> the package, respectively. The name should consist of letters, >>> numbers, and the dot character and start with a letter. ............... > > Hence it's clear that the character "-" is not allowed in a > package name. > > So why do you think this is a bug ?Because that form 'Translation-ll' is recommended in the R-exts manual for translation packages. We do say R CMD build will build such=20 packages, and at the time it was written it did. So we need to make an=20 exception in 'build' for translation packages. --=20 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 --27464147-1563048805-1132142703=:11543--