[Rd] install.packages("C", dep=TRUE) does not always install indirect dependencies

Herve Pages hpages at fhcrc.org
Thu Jun 8 21:31:48 CEST 2006


Hello again,

I've found another issue with 'install.packages'.
'install.packages("C", dep=TRUE)' will "fail" when the 2 following
conditions are satisfied:
  - Package C depends on B which in turns depends on A but
    the Depends field in C doesn't list A.
  - Package B is already installed but not package A (e.g.
    the user did 'install.packages("B", dep=FALSE)').
Then 'install.packages("C", dep=TRUE)' will not install A.
May be this is the desired behavior, I don't know. Personally, I would
think of 'install.packages("C", dep=TRUE)' as a reliable way to get every
packages that C directly or indirectly relies on installed.

Best,

H.

-- 
------------------------
Hervé Pagès
E-mail: hpages at fhcrc.org
 Phone: (206) 667-5791
   Fax: (206) 667-1319



More information about the R-devel mailing list