Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: dependencies ‘sf’, ‘spdep’ are not available for package ‘monocle3’ #737

Open
xiaoli-gg opened this issue Oct 19, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@xiaoli-gg
Copy link

My R version is 4.4.1.The way dowload monocle3 confused me long time.

ERROR: dependencies ‘sf’, ‘spdep’ are not available for package ‘monocle3’
* removing ‘/dssg/home/acct-chinamxj/chinamxj/R/x86_64-redhat-linux-gnu-library/4.4.1/monocle3’
Installation paths not writeable, unable to update packages
  path: /usr/local/lib/R/library
  packages:
    boot, foreign, MASS, Matrix, nlme, survival
@xiaoli-gg xiaoli-gg added the bug Something isn't working label Oct 19, 2024
@LGY692
Copy link

LGY692 commented Oct 31, 2024

Have you solved it?

@xiaoli-gg
Copy link
Author

No, I still have no idea to solve this error.

@HaikuoLi
Copy link

HaikuoLi commented Nov 1, 2024

same issue

@um-pdavila
Copy link

Hi,

I think you are missing some devel packages. I just encountered the same "sf, spdep" error. I was missing the udunits2-devel package.

The following works on RHEL9, and should also work on RHEL8.

$ sudo subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
$ sudo dnf install epel-release
$ sudo dnf install R freetype-devel libpng-devel libtiff-devel libjpeg-devel gdal gdal-devel hdf5 hdf5-devel proj proj-devel sqlite sqlite-devel geos geos-devel udunits2 udunits2-devel -y

$ R
> install.packages("devtools", Ncpus=8)

> BiocManager::install(c('BiocGenerics', 'DelayedArray', 'DelayedMatrixStats','limma', 'lme4', 'S4Vectors', 'SingleCellExperiment', 'SummarizedExperiment', 'batchelor', 'HDF5Array',  'terra', 'ggrastr'))

> devtools::install_github('cole-trapnell-lab/monocle3')

If the version of gdal or proj on RHEL8 is too old, I recommend using spack to build them.

@wenxiang688
Copy link

Maybe you can try to install these packages with biomanager first and then install monocle3 through github
BiocManager::install(c( 'sf', 'spdep'))
devtools::install_github('cole-trapnell-lab/monocle3')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants