From murdoch.duncan at gmail.com  Fri Jul  4 21:42:19 2014
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Fri, 04 Jul 2014 15:42:19 -0400
Subject: [Rd] DESCRIPTION.in file causes R CMD check to fail?
In-Reply-To: <34738.1404502065@greg-minshalls-mbp.local>
References: <34738.1404502065@greg-minshalls-mbp.local>
Message-ID: <53B7039B.6060106@gmail.com>

On 04/07/2014 3:27 PM, Greg Minshall wrote:
> hi.  i'm building a package using autotools.  to propagate the package
> version number from configure.ac to DESCRIPTION, i'm using a
> DESCRIPTION.in file.  both of these files are "shar"'d below.
>
> i need to distribute the DESCRIPTION.in file, as ./configure will need
> it.  but, "R CMD check" wants to look at DESCRIPTION, so i've let that
> also come into the package tarball.

I don't understand why configure needs access to DESCRIPTION.in. What is 
it reading there?

The XML package has both DESCRIPTION and DESCRIPTION.in; it might be 
helpful for you to see what it does.

Duncan Murdoch
>
> however, when i run "R CMD check" with DESCRIPTION.in in the tree, it
> fails:
> ----
> bash greg-minshalls-mbp: {3359} R CMD check image2k_0.1.tar.gz
> * using log directory ?/Users/minshall/src/mine/image2k/buildit/image2k.Rcheck?
> * using R version 3.0.3 (2014-03-06)
> * using platform: x86_64-apple-darwin13.1.0 (64-bit)
> * using session charset: UTF-8
> Error in if (desc["Priority"] == "base") { :
>    missing value where TRUE/FALSE needed
> Execution halted
> ----
>
> (whereas if i remove DESCRIPTION.in and recreate the tar file,
> everything is good.)
>
> are there any thoughts on what might be the problem?
>
> cheers, Greg Minshall
> ----
> # This is a shell archive.  Save it in a file, remove anything before
> # this line, and then unpack it by entering "sh file".  Note, it may
> # create directories; files and directories will be owned by you and
> # have default permissions.
> #
> # This archive contains:
> #
> #       DESCRIPTION
> #       DESCRIPTION.in
> #
> echo x - DESCRIPTION
> sed 's/^X//' >DESCRIPTION << 'END-of-DESCRIPTION'
> XPackage: image2k
> XType: Package
> XTitle: interface between pixmap and Imlib2 and/or MagickWand
> XVersion: 0.1
> XDate: 2014-06-24
> XAuthor: Greg Minshall
> XMaintainer: Greg Minshall <minshall at acm.org>
> XDescription: image2k creates pixmaps from any image file that is
> X  supported by the Imlib2 and/or MagickWand libraries (assuming one or
> X  both of these libraries are available on your machine).  similarly,
> X  given a pixmap, image2k can write that to an image file using either
> X  Imlib2 and/or MagickWand.  (MagickWand is an optional library from
> X  ImageMagick.)
> XLicense: MIT + file LICENSE
> XDepends: pixmap
> END-of-DESCRIPTION
> echo x - DESCRIPTION.in
> sed 's/^X//' >DESCRIPTION.in << 'END-of-DESCRIPTION.in'
> XPackage: image2k
> XType: Package
> XTitle: interface between pixmap and Imlib2 and/or MagickWand
> XVersion: @VERSION@
> XDate: 2014-06-24
> XAuthor: Greg Minshall
> XMaintainer: Greg Minshall <minshall at acm.org>
> XDescription: image2k creates pixmaps from any image file that is
> X  supported by the Imlib2 and/or MagickWand libraries (assuming one or
> X  both of these libraries are available on your machine).  similarly,
> X  given a pixmap, image2k can write that to an image file using either
> X  Imlib2 and/or MagickWand.  (MagickWand is an optional library from
> X  ImageMagick.)
> XLicense: MIT + file LICENSE
> XDepends: pixmap
> END-of-DESCRIPTION.in
> exit
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] DESCRIPTION.in file causes R CMD check to fail?
Duncan Murdoch