I was trying to install ExomeDepth package, after that one of its command from its document getBamCounts
gives following error.
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘rlang’ 1.0.5 is already loaded, but >= 1.1.0 is required
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘rlang’ 1.0.5 is already loaded, but >= 1.1.0 is required
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘rlang’ 1.0.5 is already loaded, but >= 1.1.0 is required
First thing that I do not understand is that it should have installed the version it is saying on its own. Even so, I tried installing 1.1.0 using following install.packages("rlang", version="1.1.0")
. But it still installs 1.0.5. I checked if the 1.1.0 is available or not using
av <- available.packages(filters=list())
av[av[, "Package"] == "rlang", ]
Package Version Priority Depends Imports LinkingTo
rlang "rlang" "1.1.0" NA "R (>= 3.5.0)" "utils" NA
rlang "rlang" "1.0.6" NA "R (>= 3.4.0)" "utils" NA
Suggests
rlang "cli (>= 3.1.0), covr, crayon, fs, glue, knitr, magrittr,\nmethods, pillar, rmarkdown, stats, testthat (>= 3.0.0), tibble,\nusethis, vctrs (>= 0.2.3), withr"
rlang "cli (>= 3.1.0), covr, crayon, fs, glue, knitr, magrittr,\nmethods, pillar, rmarkdown, stats, testthat (>= 3.0.0), tibble,\nusethis, vctrs (>= 0.2.3), withr"
Enhances License License_is_FOSS License_restricts_use
rlang "winch" "MIT + file LICENSE" NA NA
rlang "winch" "MIT + file LICENSE" NA NA
OS_type Archs MD5sum NeedsCompilation File
rlang NA NA "58861e9d99517eb10f7683249efae513" "yes" NA
rlang NA NA "907bc04039194b0c7edc19e9084b14fc" "yes" NA
Repository
rlang "https://cloud.r-project.org/src/contrib"
rlang "https://cran.microsoft.com/src/contrib"
Can someone tell me how to install rlang v1.1.0?
EDIT: "It is resolved now" Thansk Lluís R. with your advice, I took out the reason for duplication, I was installing rlang 1.1.0 after installing ExomeDepth, so I reversed this by installing rlang 1.1.0 before installing ExomeDepth. Thanks.
Lluís R.
I want to install ExomeDepth, these dependencies were not getting installed on its own so I installed it before installing ExomeDepth
install.packages("BiocManager")
BiocManager::install(c("Biostrings", "IRanges", "Rsamtools", "GenomicRanges", "GenomicAlignments"))
These got installed at
Now I installed ExomeDepth:
devtools::install_github("vplagnol/ExomeDepth")
. Witjhin this the rlang is shown to install in this:Now I am installing this:
install.packages("rlang", version="1.1.0")
packageVersion("rlang")
This gives the path
Is the method you mentioned will help out here too?
When you edited the comment I didn't receive any notification. One thing is where a package is downloaded and where it is finally installed.
install.packages
doesn't have a version argument. You might be using a different package or not getting what you thought.