From minshall at acm.org  Sun Jul 13 21:13:27 2014
From: minshall at acm.org (Greg Minshall)
Date: Sun, 13 Jul 2014 22:13:27 +0300
Subject: [Rd] how to list external dependencies (i.e., non-R packages)?
Message-ID: <24045.1405278807@greg-minshalls-mbp.local>

hi.  i'm working on a package which only works if one (or both) of two
libraries (Imlib2 and MagickWand) exist on the machine on which the
package is compiled and executed.  as currently written, the program
purposely generates an error at *compile* time if neither library is
available (thinking the earlier the user is notified, the less
frustrating).

is there a way of specifying this dependency in, say, the DESCRIPTION
file?  (seems unlikely, as this is what the whole autotools/configure.ac
framework is supposed to deal with.)

or, should i take out the compile time error (maybe replace my #error
with a #warning), and just generate at error at run time?  (this will
require me to figure out what that means for build tests/, but obviously
some sort of hack is doable.)

cheers, Greg



[Rd] how to list external dependencies (i.e., non-R packages)?
Greg Minshall