Is it fine to download all available packages for R?
1
0
Entering edit mode
7.4 years ago
vinayjrao ▴ 250

Hello,

I am trying to download genefu package in R, and constantly got the error that certain dependencies are not available for biomaRt. I was therefore wondering if it is fine to download all available packages for R? If yes, is there a way to download all packages at once or do I have to mention each package one at a time?

TIA :)

R bio-conductor • 1.9k views
ADD COMMENT
0
Entering edit mode

I think this will take a loooong time and will use up a lot of your hard disk space. I would suggest to install the package you need only.

ADD REPLY
0
Entering edit mode

Thanks, but what do I do when it keeps saying that the dependencies are not available?

ADD REPLY
2
Entering edit mode
7.4 years ago

You can do like this; example installing an arbitrary package called "foo" along with its dependencies:

install.packages("foo", dependencies=TRUE)
ADD COMMENT
0
Entering edit mode

genefu is a bioconductor package, so I did the following -

source("http://bioconductor.org/biocLite.R")
biocLite("genefu")

The error I got was -

checking for xml2-config... no

Cannot find xml2-config

ERROR: configuration failed for package ‘XML’ * removing ‘/home/vinay/R/x86_64-pc-linux-gnu-library/3.4/XML’ * installing *source* package ‘RCurl’ ... ** package ‘RCurl’ successfully unpacked and MD5 sums checked

checking for curl-config... no

Cannot find curl-config

ERROR: configuration failed for package ‘RCurl’ * removing ‘/home/vinay/R/x86_64-pc-linux-gnu-library/3.4/RCurl’ ERROR: dependencies ‘XML’, ‘RCurl’ are not available for package ‘biomaRt’ *removing ‘/home/vinay/R/x86_64-pc-linux-gnu-library/3.4/biomaRt’ ERROR: dependency ‘biomaRt’ is not available for package ‘genefu’ * removing ‘/home/vinay/R/x86_64-pc-linux-gnu-library/3.4/genefu’

The downloaded source packages are in ‘/tmp/RtmpLcsZFf/downloaded_packages’ installation path not writeable, unable to update packages: foreign, spatial Warning messages: 1: In install.packages(pkgs = doing, lib = lib, ...) : installation of package ‘XML’ had non-zero exit status 2: In install.packages(pkgs = doing, lib = lib, ...) : installation of package ‘RCurl’ had non-zero exit status 3: In install.packages(pkgs = doing, lib = lib, ...) : installation of package ‘biomaRt’ had non-zero exit status 4: In install.packages(pkgs = doing, lib = lib, ...) : installation of package ‘genefu’ had non-zero exit status

ADD REPLY
2
Entering edit mode

The problem is with xml2-config. Check this Also there are many dependencies. Do biocLite() and update, then try one more time.

ADD REPLY
0
Entering edit mode

share session information by running:

> sessionInfo()
ADD REPLY

Login before adding your answer.

Traffic: 2565 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6