Help in installing certain pacakges
1
3
Entering edit mode
@lirongrossmann-23954
Last seen 3.9 years ago

Hi all,

I have been trying to install several packages recently, both from R studio and from R and received the following error, for example for one of the packages, using:

BiocManager::install("monocle3")

"package ‘monocle3’ is not available (for R version 4.0.2)". I know that the packages I am looking for are in Bioconductor but cannot install them for some reason.

Any thoughts or recs?

Thanks!

software error install • 5.2k views
ADD COMMENT
1
Entering edit mode
Kevin Blighe ★ 4.0k
@kevin
Last seen 2 days ago
Republic of Ireland

Hello again,

The installation instructions for Monocle are here: https://cole-trapnell-lab.github.io/monocle3/docs/installation/

For all intents and purposes, you should be able to install via:

install.packages("devtools")
devtools::install_github('cole-trapnell-lab/leidenbase')
devtools::install_github('cole-trapnell-lab/monocle3')

I have just tested on R 4.0.2 and it installs okay.

You may need the additional Bioconductor dependencies:

BiocManager::install(c('BiocGenerics', 'DelayedArray', 'DelayedMatrixStats',
                       'limma', 'S4Vectors', 'SingleCellExperiment',
                       'SummarizedExperiment', 'batchelor', 'Matrix.utils'))

As a package, it is neither on the CRAN nor Bioconductor repositories.

Kevin

ADD COMMENT
3
Entering edit mode

Or better yet

> library(BiocManager)
## have to do this because the remotes package has stupid defaults
## and will error on something as trivial as a binary package being built on a slightly different R version
> Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS = "true")
> BiocManager::install("cole-trapnell-lab/monocle3")

Which if you are on a Windows box requires Rtools to be installed first. And which will get and install whatever dependencies you may need.

As a general rule, it is best to just install pretty much any package using BiocManager::install because it automates the install.

ADD REPLY

Login before adding your answer.

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