monocle3 icon indicating copy to clipboard operation
monocle3 copied to clipboard

ERROR: lazy loading failed for package 'monocle3'

Open horizon278 opened this issue 1 year ago • 4 comments

R version 4.2.1 I have successfully installed leidenbase. When I use "devtools::install_github('cole-trapnell-lab/monocle3')" to install monocle3, there is a problem.

devtools::install_github('cole-trapnell-lab/monocle3') Downloading GitHub repo cole-trapnell-lab/monocle3@HEAD ✔ checking for file 'C:\Users\LENOVO\AppData\Local\Temp\Rtmp00MTpd\remotes4f8c2d645a91\cole-trapnell-lab-monocle3-87f6e88/DESCRIPTION' (558ms) ─ preparing 'monocle3': (882ms) ✔ checking DESCRIPTION meta-information ... ─ cleaning src ─ checking for LF line-endings in source and make files and shell scripts (473ms) ─ checking for empty or unneeded directories Omitted 'LazyData' from DESCRIPTION ─ building 'monocle3_1.2.9.tar.gz'

将程序包安装入‘E:/RStudio/library’

  • installing source package 'monocle3' ... ** using staged installation ** libs g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I'C:/Program Files/R/R-4.2.1/library/Rcpp/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I'C:/Program Files/R/R-4.2.1/library/Rcpp/include' -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c clustering.cpp -o clustering.o g++ -shared -s -static-libgcc -o monocle3.dll tmp.def RcppExports.o clustering.o -Lc:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -Lc:/rtools42/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-42~1.1/bin/x64 -lR installing to E:/RStudio/library/00LOCK-monocle3/00new/monocle3/libs/x64 ** R ** inst ** byte-compile and prepare package for lazy loading ERROR: lazy loading failed for package 'monocle3'
  • removing 'E:/RStudio/library/monocle3' Warning message: In i.p(...) : 安装程序包‘C:/Users/LENOVO/AppData/Local/Temp/Rtmp00MTpd/file4f8c294a7604/monocle3_1.2.9.tar.gz’时退出狀態的值不是0

horizon278 avatar Sep 07 '22 14:09 horizon278

same question..

hyq9588 avatar Jan 19 '23 03:01 hyq9588

I have the same question with you have you addressed it yet?

lzw19950615 avatar Mar 21 '23 13:03 lzw19950615

Uninstall R and all R packages in the root directory. Then reinstall R, perfecting solution!

hyq9588 avatar Mar 21 '23 15:03 hyq9588

I encountered the same issue, solved it by following the answer provided by https://github.com/cole-trapnell-lab/monocle3/issues/616#issuecomment-1249828313

Specifically, this issue occurred after I updated my R (4.3.0) and Rstudio (2023.03.1-446) versions. Apparently, I need to download the latest Rtools version (43) too.

Lindseynicer avatar May 29 '23 06:05 Lindseynicer