Re: [Rd] install.packages() and configure.args

From: Duncan Temple Lang <>
Date: Sun, 21 Oct 2007 10:17:20 +1300

Hash: SHA1

Hi Herve

 The "best" way to specify configure.args when there are multiple packages (either directly or via dependencies) is to use names on the character vector, i.e.




This allows one to specify command line arguments for many packages simultaneously and unambiguously.

install.packages() only uses configure.args when there are no names if there is only one package being installed. It could be made smarter to apply this to the first of the pkgs only, or to identify the packages as direct and dependent. But it is not obvious it is worth the effort as using names on configure.args provides a complete solution and is more informative.

Thanks for pointing this out.


Herve Pages wrote:
> Hi,
> In the case where install.packages("packageA") also needs to install
> required package "packageB", then what is passed thru the 'configure.args'
> argument seems to be lost when it's the turn of packageA to be installed
> (the last package to get installed).
> This is not easy to reproduce but let's say you have the graphviz libraries
> installed on your system, but you don't have the graph package installed yet.
> Then this
> install.packages("Rgraphviz",
> rep="",
> configure.args="--with-graphviz=/some/non/standard/place")
> will fail because --with-graphviz=/some/non/standard/place doesn't seem to be
> passed to Rgraphviz's configure script. But if you already have the graph package,
> then it will work.
> Cheers,
> H.
> ______________________________________________
> mailing list
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla -

iD8DBQFHGnBg9p/Jzwa2QP4RAp0NAJ9Qe/thxdrX8CpFVcRP2UoHk1txFACeL9uM twmID5hsclilHhIfPsuFt7A=
-----END PGP SIGNATURE----- mailing list Received on Sat 20 Oct 2007 - 21:19:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 25 Oct 2007 - 11:37:11 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.