Skip to content
Prev 334537 / 398502 Next

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:
[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).
Error in library(ergm) : there is no package called ?ergm?
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