error in R when installing DESeq2 package
3
0
Entering edit mode
8.6 years ago
zizigolu ★ 4.3k

sorry guys,

whenever im trying, this is the error

what does this mean please? how i can fix it?

> source("https://bioconductor.org/biocLite.R")
https:// URLs are not supported by the default method: trying "libcurl"
Bioconductor version 3.1 (BiocInstaller 1.18.4), ?biocLite for help
>

software error R • 17k views
ADD COMMENT
2
Entering edit mode
7.4 years ago
csclaros ▴ 20

Hi! You need to run this in your terminal before installing anything in Bioconductor/R:

sudo apt-get update
sudo apt-get install libxml2-dev
sudo apt-get install r-cran-xml
sudo apt-get install libcurl4-openssl-dev

Hope it works for you too!

ADD COMMENT
1
Entering edit mode
8.6 years ago
source("http://bioconductor.org/biocLite.R")

You didn't get an error, it executed. Did you even read the output you pasted here?

"https:// URLs are not supported by the default method"

secure URLs are not supported by the source function

"trying "lib curl""

It tries the lib curl library.

"Bioconductor version 3.1 (BiocInstaller 1.18.4), ?biocLite for help"

Success.

Have a go at trying to figure out the errors yourself before posting. Throwing the error into google, plus "R" brings up a number of results.

ADD COMMENT
0
Entering edit mode

thanks you Andrew,

I'm trying since morning to install this package, llok at the below please

ADD REPLY
1
Entering edit mode

This is your problem:

Error : package 'BSgenome' 1.32.0 was found, but >= 1.33.5 is required by 'BSgenome.Celegans.UCSC.ce2'

The package you are trying to install or its dependencies needs a newer version of this BSgenome. You probably had an earlier version already installed.

Try updating it first

biocLite("BSgenome")

then

biocLite("DESeq2")
ADD REPLY
0
Entering edit mode

thank you

i will try

ADD REPLY
0
Entering edit mode

run

biocLite()

to update all your outdated packages then

biocLite("DESeq2")

The install.packages function is for CRAN libraries, whereas DESeq2 is a Bioconductor Library.

ADD REPLY
0
Entering edit mode

sorry Andrew,

I did what you said

but asked me Would you like to use a personal library instead? (y/n) and I typed y and after some time said that:

The downloaded source packages are in
    '/tmp/RtmpzRdBqS/downloaded_packages'
There were 50 or more warnings (use warnings() to see the first 50)
>

now from where I can recognize that if the package installed or not?

thank you

ADD REPLY
1
Entering edit mode
library(DESeq2)
ADD REPLY
0
Entering edit mode
> library(DESeq2)
Error in library(DESeq2) : there is no package called 'DESeq2'
>

then what can I do now?

ADD REPLY
1
Entering edit mode

Did you run

warnings()

As it suggested?

ADD REPLY
0
Entering edit mode

hi andrew,

this is my 50 error

ADD REPLY
0
Entering edit mode

As @Lemire/OICR stated, from your original log:

Error : package 'BSgenome' 1.32.0 was found, but >= 1.33.5 is required by 'BSgenome.Celegans.UCSC.ce2'

Is the issue, you need to install an updated version.

ADD REPLY
0
Entering edit mode

thank you,

I did the same but again the same question(would you like to your personal file) I typed y but

Error : package 'BSgenome' 1.32.0 was found, but >= 1.33.5 is required by 'BSgenome.Celegans.UCSC.ce2'
ERROR: lazy loading failed for package 'BSgenome.Celegans.UCSC.ce2'
* removing '/usr/people/home/izadi/R/x86_64-redhat-linux-gnu-library/3.2/BSgenome.Celegans.UCSC.ce2'

The downloaded source packages are in
    '/tmp/Rtmpwnc0IZ/downloaded_packages'
There were 50 or more warnings (use warnings() to see the first 50)
> library(DESeq2)
Error in library(DESeq2) : there is no package called 'DESeq2'
> library(/usr/data/nfs6/izadi/R-3.2.2/lib/DESeq2)
Error: unexpected '/' in "library(/"
ADD REPLY
0
Entering edit mode

You ran

biocLite("BSgenome")

didn't you?

ADD REPLY
0
Entering edit mode

I ran biocLite("BSgenome") the first then I ran (DESeq2)...but the same error...there is a file named R-3.2.2 in /usr/data/nfs6/izadi/ containing many folders then I ran the library(/usr/data/nfs6/izadi/R-3.2.2/lib/DESeq2) but again error...totally I donno how I can install this package

ADD REPLY
0
Entering edit mode
4.1 years ago

Some R versions have problems with biocLite in R. Try with this tutorial: 5 Ways to install DESeq2

English and spanish

ADD COMMENT

Login before adding your answer.

Traffic: 2368 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