I've been experimenting with install.packages and it's new ability to track down dependencies from a list of repositories and encountered this: install.packages(c("foo", "bar"), repos="http://cran.r-project.org", dependencies=c("Depends", "Suggests")) dependencies 'foo' are not availabledependencies 'bar' are not available ^^^^^^^^^^^^^^^^^^^^ With the following change (see below) I get what I suspect is the intended warning message: dependencies 'foo', 'bar' are not available + seth Index: packages2.R ==================================================================--- packages2.R (revision 33678) +++ packages2.R (working copy) @@ -125,7 +125,7 @@ cat(sprintf(ngettext(sum(miss), "dependency %s is not available", "dependencies %s are not available"), - paste(sQuote(p1[miss]), sep=", ")), "\n\n", sep ="") + paste(sQuote(p1[miss]), collapse=", ")), "\n\n", sep ="") flush.console() } p1 <- p1[!miss]
>>>>> "Seth" == Seth Falcon <sfalcon@fhcrc.org> >>>>> on Sun, 20 Mar 2005 18:34:13 -0800 writes:Seth> I've been experimenting with install.packages and it's Seth> new ability to track down dependencies from a list of Seth> repositories and encountered this: Seth> install.packages(c("foo", "bar"), Seth> repos="http://cran.r-project.org", Seth> dependencies=c("Depends", "Suggests")) Seth> dependencies 'foo' are not availabledependencies 'bar' Seth> are not available ^^^^^^^^^^^^^^^^^^^^ Seth> With the following change (see below) I get what I Seth> suspect is the intended warning message: Seth> dependencies 'foo', 'bar' are not available Indeed. Thank you Seth! - I've committed your change to be in '` R-alpha of 2005-03-22 '' Apropos: Please, all users of R-2.1.0 (alpha) {aka "R-devel"}: ``keep your eyes open'' for not quite correctly formatted error messages, or even other problems in error and warning messages. The large amount of work that was put in (mostly by Prof Brian Ripley) rationalizing these messages in order to make them more consistent (for translation, e.g.!) may have lead to a few typos that are unavoidable when changing those thousand of lines of code efficiently. Martin