Cannot load DESeq2 package

Dear Community,
(Disclaimer : I learned R two weeks ago so most probably a very nooby question)
I have run the follwing code to install DESeq2 based on the advice of my Post-Doc:


Everything seemed fine except for DESeq2 where I had an issue with dependcy for the "RCurl" package that I tried to install seperately but got this error (even when specifying "source")

Installing package into ‘C:/Users/milan/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)

There is a binary version available but the source version is later:
binary source needs_compilation
RCurl 1.98-1.6 1.98-1.12 TRUE

installing the source package ‘RCurl’

trying URL ''
Content type 'application/x-gzip' length 731481 bytes (714 KB)
downloaded 714 KB

  • installing source package 'RCurl' ...
    ** package 'RCurl' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    In file included from base64.c:1:
    Rcurl.h:4:10: fatal error: curl/curl.h: No such file or directory
    #include <curl/curl.h>
    compilation terminated.
    make: *** [C:/PROGRA~1/R/R-40~1.3/etc/x64/Makeconf:222: base64.o] Error 1
    ERROR: compilation failed for package 'RCurl'
  • removing 'C:/Users/milan/Documents/R/win-library/4.0/RCurl'
  • restoring previous 'C:/Users/milan/Documents/R/win-library/4.0/RCurl'
    Warning in install.packages :
    installation of package ‘RCurl’ had non-zero exit status

But I can still see RCurl in my package list somehow as well as the DESeq2 package which is strange so I decided to load DESeq2 anyways and got this error

Loading required package: S4Vectors
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: ‘BiocGenerics’

The following objects are masked from ‘package:parallel’:

clusterApply, clusterApplyLB, clusterCall, clusterEvalQ, clusterExport, clusterMap,
parApply, parCapply, parLapply, parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from ‘package:stats’:

IQR, mad, sd, var, xtabs

The following objects are masked from ‘package:base’:

anyDuplicated, append,, basename, cbind, colnames, dirname,,
duplicated, eval, evalq, Filter, Find, get, grep, grepl, intersect, is.unsorted,
lapply, Map, mapply, match, mget, order, paste, pmax,, pmin,,
Position, rank, rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which.max, which.min

Attaching package: ‘S4Vectors’

The following object is masked from ‘package:base’:


Loading required package: IRanges

Attaching package: ‘IRanges’

The following object is masked from ‘package:grDevices’:


Loading required package: GenomicRanges
Loading required package: GenomeInfoDb
Loading required package: SummarizedExperiment
Loading required package: MatrixGenerics
Loading required package: matrixStats

Attaching package: ‘MatrixGenerics’

The following objects are masked from ‘package:matrixStats’:

colAlls, colAnyNAs, colAnys, colAvgsPerRowSet, colCollapse, colCounts, colCummaxs,
colCummins, colCumprods, colCumsums, colDiffs, colIQRDiffs, colIQRs, colLogSumExps,
colMadDiffs, colMads, colMaxs, colMeans2, colMedians, colMins, colOrderStats,
colProds, colQuantiles, colRanges, colRanks, colSdDiffs, colSds, colSums2,
colTabulates, colVarDiffs, colVars, colWeightedMads, colWeightedMeans,
colWeightedMedians, colWeightedSds, colWeightedVars, rowAlls, rowAnyNAs, rowAnys,
rowAvgsPerColSet, rowCollapse, rowCounts, rowCummaxs, rowCummins, rowCumprods,
rowCumsums, rowDiffs, rowIQRDiffs, rowIQRs, rowLogSumExps, rowMadDiffs, rowMads,
rowMaxs, rowMeans2, rowMedians, rowMins, rowOrderStats, rowProds, rowQuantiles,
rowRanges, rowRanks, rowSdDiffs, rowSds, rowSums2, rowTabulates, rowVarDiffs,
rowVars, rowWeightedMads, rowWeightedMeans, rowWeightedMedians, rowWeightedSds,

Loading required package: Biobase
Welcome to Bioconductor

Vignettes contain introductory material; view with 'browseVignettes()'. To cite
Bioconductor, see 'citation("Biobase")', and for packages 'citation("pkgname")'.

Attaching package: ‘Biobase’

The following object is masked from ‘package:MatrixGenerics’:


The following objects are masked from ‘package:matrixStats’:

anyMissing, rowMedians

Error: package or namespace load failed for ‘DESeq2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘XML’
In addition: Warning messages:
1: package ‘BiocGenerics’ was built under R version 4.0.5
2: package ‘GenomeInfoDb’ was built under R version 4.0.

If somebody understands what is going on feel free to share it ! I in my programming debut so I do not understand the error I am getting ....

Thank you all for reading until the end !

This indicates failure to complete the compilation and installation process. A good rule of thumb is that it doesn't hurt to take the source option, but only try it once. If it doesn't work, just say no and take the binary.

RCurl, is a special package, as it's just an interface for libcurl, which needs to be installed separately. On Windows 10 and later, it's already there, but:

I think this indicates that the existing libcurl was not found.

So, either you try not installing from source, as technocrat suggests, so that Rcurl can take advantage of the existing libcurl that comes with Windows, or you might need to install the latest version of libcurl yourself from the link above.

1 Like

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.