YuLab-SMU / ggtree

:christmas_tree:Visualization and annotation of phylogenetic trees
https://yulab-smu.top/contribution-tree-data/
839 stars 173 forks source link

Error install ggtree R 4.2.1 #518

Closed bullones closed 2 years ago

bullones commented 2 years ago

Hello!

My name is Amanda and I'm a PhD Student. I'm trying to install ggtree in RStudio Desktop 2022.07.1+554 with R 4.2.1 and I get an error. My computer is an Ubuntu 20.04.4. I've tried to install it both versions:

But I always get the same error. I hope you can help me. Thank you for your time!

> BiocManager::install("ggtree")
'getOption("repos")' replaces Bioconductor standard
repositories, see '?repositories' for details

replacement repositories:
    CRAN: https://cloud.r-project.org

Bioconductor version 3.15 (BiocManager 1.30.18), R 4.2.1
  (2022-06-23)
Installing package(s) 'ggtree'
probando la URL 'https://bioconductor.org/packages/3.15/bioc/src/contrib/ggtree_3.4.1.tar.gz'
Content type 'application/x-gzip' length 355778 bytes (347 KB)
==================================================
downloaded 347 KB

* installing *source* package ‘ggtree’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in get(x, envir = ns, inherits = FALSE) : 
  objeto 'warning_wrap' no encontrado
Error: unable to load R code in package ‘ggtree’
Ejecución interrumpida
ERROR: lazy loading failed for package ‘ggtree’
* removing ‘/home/bullones/R/x86_64-pc-linux-gnu-library/4.2/ggtree’

The downloaded source packages are in
    ‘/tmp/RtmpIMoohe/downloaded_packages’
Warning message:
In install.packages(...) :
  installation of package ‘ggtree’ had non-zero exit status
xiangpin commented 2 years ago

I think your ggplot2 version is the development version (installed from github.). please refer to the same issue. You can use install.package('ggplot2') to install the released version (ggplot2<=3.3.6). And this issue will be fixed until the next version of ggplot2 is released, referring to this.

bullones commented 2 years ago

Thank you very much! It fixed my problem! :)