[R] install.packages and dependencies=TRUE
Gábor Csárdi
csardi.gabor at gmail.com
Tue Dec 17 17:26:08 CET 2013
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
More information about the R-help
mailing list