error in installing rtracklayer package

I'm pretty new to Rstudio on ubuntu .so I'm trying to install "rtracklayer" package from BiocManager I used this code:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")

BiocManager::install("rtracklayer")

and I see everything goes well and packages download completely but in the end I get these errors:

ERROR: configuration failed for package ‘RCurl’

  • removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/4.0/RCurl’
    ERROR: dependency ‘RCurl’ is not available for package ‘GenomeInfoDb’
  • removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/4.0/GenomeInfoDb’
    ERROR: dependency ‘GenomeInfoDb’ is not available for package ‘GenomicRanges’
  • removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/4.0/GenomicRanges’
    ERROR: dependencies ‘GenomicRanges’, ‘GenomeInfoDb’ are not available for package ‘SummarizedExperiment’
  • removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/4.0/SummarizedExperiment’
    ERROR: dependencies ‘GenomeInfoDb’, ‘GenomicRanges’, ‘Rhtslib’ are not available for package ‘Rsamtools’
  • removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/4.0/Rsamtools’
    ERROR: dependencies ‘GenomeInfoDb’, ‘GenomicRanges’, ‘SummarizedExperiment’, ‘Rsamtools’ are not available for package ‘GenomicAlignments’
  • removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/4.0/GenomicAlignments’
    ERROR: dependencies ‘GenomicRanges’, ‘XML’, ‘GenomeInfoDb’, ‘RCurl’, ‘Rsamtools’, ‘GenomicAlignments’ are not available for package ‘rtracklayer’
  • removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/4.0/rtracklayer’

The downloaded source packages are in
‘/tmp/RtmpjzWMQf/downloaded_packages’
Installation path not writeable, unable to update packages: foreign, nlme, spatial, survival

and a bunch of warning messages:

1: In install.packages(...) :
installation of package ‘Rhtslib’ had non-zero exit status
2: In install.packages(...) :
installation of package ‘XML’ had non-zero exit status
3: In install.packages(...) :
installation of package ‘RCurl’ had non-zero exit status
4: In install.packages(...) :
installation of package ‘GenomeInfoDb’ had non-zero exit status
5: In install.packages(...) :
installation of package ‘GenomicRanges’ had non-zero exit status
6: In install.packages(...) :
installation of package ‘SummarizedExperiment’ had non-zero exit status
7: In install.packages(...) :
installation of package ‘Rsamtools’ had non-zero exit status
8: In install.packages(...) :
installation of package ‘GenomicAlignments’ had non-zero exit status
9: In install.packages(...) :
installation of package ‘rtracklayer’ had non-zero exit status

can anyone help me what i need to do

Try closing all your RStudio sessions and running this again (with no additional package loaded). You can also try to install RCurl directly from CRAN with install.packages().

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