[Rd] install.packages() and configure.args
Duncan Temple Lang
duncan at wald.ucdavis.edu
Sat Oct 20 23:17:20 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
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:
> 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
> 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.
> R-devel at r-project.org mailing list
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the R-devel