This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Does anyone manage to install Monocle3 on Rstudio 3.6.1 (on Debian 9)?

Hello,

The installation of Monocle3 on Rstudio is driving me nuts and I'm trying to install it for a couple of days, by different methods ... nothing works. Monocle, the previous release of Monocle3 get to be installed but has some troubles running and I would prefer to work with the latest version and fonctionalities.

I'm running on Debian9, on Rstudio. For now, the latest R version is installed and it's R 3.6.1. I can't manage to install the 3.6.2 but normally, Monocle3 should work on 3.6.1 too.

Everything is working, Bioconductor, the packages that need to be installed before (like SingleCellExperiment), leidenbase through devtools....

So I had to install manually a couple of packages, like speedglm, furr ...

rstudio monocle3 r

Install speedglm manually and then post the error message. Doesn't work is difficult to debug without further details.

Well, manually, I manage to install speedglm.

I encounter now a new problem:

configure: error: in `/tmp/RtmpDZcah8/R.INSTALL6eed630b38f3/units':
configure: error: 
--------------------------------------------------------------------------------
  Configuration failed because libudunits2.so was not found. Try installing:
    * deb: libudunits2-dev (Debian, Ubuntu, ...)
    * rpm: udunits2-devel (Fedora, EPEL, ...)
    * brew: udunits (OSX)
  If udunits2 is already installed in a non-standard location, use:
    --configure-args='--with-udunits2-lib=/usr/local/lib'
  if the library was not found, and/or:
    --configure-args='--with-udunits2-include=/usr/include/udunits2'
  if the header was not found, replacing paths with appropriate values.
  You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.
--------------------------------------------------------------------------------

See `config.log' for more details
ERROR: configuration failed for package ‘units’
* removing ‘/home/INT/draia-nicolau.o/miniconda/lib/R/library/units’
Error: Failed to install 'monocle3' from GitHub:
  (converted from warning) installation of package ‘units’ had non-zero exit status

I installed libudunits2-dev but even if a restart R after that, but the error continues to appear.

1 answer

Found a solution finally:

Install it through conda, it works perfectly

Ah indeed, that could occur. I'll try again correcting the issues I have with the installation from source the. Thank you!

I already encounter some problems with the conda version of the installation, it charges the monocle3 library but don't recognize functions from it, like newCellDataSet.

If using conda, you should use it for everything, especially where R is concerned. This means installing everything R-related with conda. In general, mixing conda and system-based installation is a recipe for problems.

Well, I installed R through conda. So you say that I have to install all packages for R through conda, the Rstudio (that I also installed with conda) package installation is not recommended even if R is installed through conda?

Yes. If you install R with conda, also install the packages with conda, don't do it from R.

EDIT: Also pay attention to which channel(s) you're using. There may be different versions of packages in different channels that may not be compatible. I'd suggest to stick to the following channels: defaults, conda-forge and bioconda.

Okay, I didn't realize how much things can get tangled up. Thank you very much for the different advices, I'll be more careful

Log in to answer this question.