Skip to content
Back to formatted view

Raw Message

Message-ID: <CABtg=KkAWJk6XTdxEGrGu6i25ChUmRyoNkTotd-MSPykVnrudA@mail.gmail.com>
Date: 2013-12-17T16:26:08Z
From: Gábor Csárdi
Subject: install.packages and dependencies=TRUE

Dear all,

I am trying to install a private package, with its dependencies. However, both

install.packages("sand_1.0.tar.gz", dependencies=TRUE, repos=NULL,
type="source")

and

install.packages("sand_1.0.tar.gz", dependencies="Suggests",
repos=NULL, type="source")

fail to install suggested packages:

> packageDescription("sand")$Suggests
[1] "network, sna, ape, ergm, mixer, vioplot, ROCR, fdrtool, huge"

Based on the docs, I got the (obviously wrong) impression, that it was
possible to install suggested packages. From ?install.packages,
dependencies argument:

          ?TRUE? means to use ?c("Depends", "Imports", "LinkingTo",
          "Suggests")? for ?pkgs? and ?c("Depends", "Imports",
          "LinkingTo")? for added dependencies: this installs all the
          packages needed to run ?pkgs?, their examples, tests and
          vignettes (if the package author specified them correctly).

> library(ergm)
Error in library(ergm) : there is no package called ?ergm?
> library(huge)
Error in library(huge) : there is no package called ?huge?

What am I doing wrong, and more importantly, what is the correct way
to install _all_ dependencies of a package?

Thanks, Best,
Gabor