[Rd] Comments in the DESCRIPTION file

Simon Urbanek simon.urbanek at r-project.org
Thu May 2 16:03:07 CEST 2013


On May 2, 2013, at 2:58 AM, cgenolin wrote:

> Hi,
> 
> I am not that familiar with the DCF... But R seems to accept # quite easely.

The fact that R currently accepts invalid DCF files is not a guarantee that it won't be following the standard more closely in the future. What you are doing is illegal in the DCF standard so don't do it. If you do so, don't be surprised that it will fail tomorrow, you have been warned.

Cheers,
S





> More precisely:
> 
> Before posting my message, I try it on a small package: R CMD check or R CMD
> INSTALL did not make any warning or error (whereas they do if I use '#'
> alone). 
> 
> After reading your response, I dig a bit more. The source of my DESCRIPTION
> file was:
> 
> --- 8< ------------------
> #############################:
> ###: This is some kind of 'section 1'
> ###:
> Package: packBasic1
> Title: Very simple package
> Version: 0.9.2
> License: GPL (>=2.0)
> Description: A package
> #:
> #:
> #############################:
> ###: This is 'section 2'
> ###:
> Author: Christophe Genolini
> Maintainer: Christophe Genolini <genolini at u-paris10.fr>
> --- 8< ------------------
> 
> The DESCRIPTION file after installation was: 
> 
> --- 8< ------------------
> #############################:
> ###:
> Package: packBasic1
> Title: Very simple package
> Version: 0.9.2
> License: GPL (>=2.0)
> Description: A package
> #:
> Author: Christophe Genolini
> Maintainer: Christophe Genolini <genolini at u-paris10.fr>
> Built: R 3.0.0; ; 2013-05-02 06:50:57 UTC; windows
> --- 8< ------------------
> 
> So I guess there was a problem.
> But if I number the comments line, then it works:
> 
> --- 8< ---------------------
> #############################1:
> ###2: This is some kind of 'section 1'
> ###3:
> Package: packBasic1
> Title: Very simple package
> Version: 0.9.2
> License: GPL (>=2.0)
> Description: A package
> #4:
> #5:
> #############################6:
> ###7: This is 'section 2'
> ###8:
> Author: Christophe Genolini
> Maintainer: Christophe Genolini <genolini at u-paris10.fr>
> Built: R 3.0.0; ; 2013-05-02 06:49:27 UTC; windows
> --- 8< ---------------------
> 
> Christophe
> 
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/Comments-in-the-DESCRIPTION-file-tp4648678p4666017.html
> Sent from the R devel mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 



More information about the R-devel mailing list