From kasperdanielhansen at gmail.com  Sun Jan 15 17:02:34 2012
From: kasperdanielhansen at gmail.com (Kasper Daniel Hansen)
Date: Sun, 15 Jan 2012 11:02:34 -0500
Subject: [Rd] configure-args for R CMD build
In-Reply-To: <165CA0BD-060F-4916-AFC0-9C720B9E8D43@fhcrc.org>
References: <CAC2h7usPzZfXDZr25J=ors7Uu4nK4Bb4NT=8kN9F+EGi8faSPQ@mail.gmail.com>
	<165CA0BD-060F-4916-AFC0-9C720B9E8D43@fhcrc.org>
Message-ID: <CAC2h7uvzo6yyxv0+sNB++sPX+Y9GvZvD8N9a_+46s0pe_W1R3g@mail.gmail.com>

On Sun, Jan 15, 2012 at 10:48 AM, Finak, Greg <gfinak at fhcrc.org> wrote:
> I think you need to enclose the arguments to configure-args in quotes.
> i.e.
>
> --configure-args='--with-graphviz=/Users/khansen/Source/usr'

I did, I was quoting the error message, not the command where I use

R CMD build --configure-args='--with-graphviz=/Users/khansen/Source/usr'
Rgraphviz

Note that I said the same command works for R CMD INSTALL.  Also, it
is clearly documented that R CMD build does not support
--configure-args.  My suggestion is that it probably ought to.

Btw, same comment but for R CMD check, which I forgot to mention in my
original post.

Kasper

> On 2012-01-15, at 7:43 AM, "Kasper Daniel Hansen"
> <kasperdanielhansen at gmail.com> wrote:
>
> When I build a package containing a vignette, the package gets
> installed to build the vignette. ?However, it appears that R CMD build
> does not allow for --configure-args. ?In my case, I have a C library
> installed in a non-standard position, and I need to tell the package
> where it is. ?It works fine with R CMD INSTALL, but R CMD build
> complains
>
> ?Warning: unknown option
> ?--configure-args=--with-graphviz=/Users/khansen/Source/usr?
>
> and the subsequent installation fails with an error.
>
> Suggestion: allow R CMD build to accept --configure-args (and probably
> also --configure-vars)
>
> Best,
> Kasper
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] configure-args for R CMD build
Kasper Daniel Hansen