ggtree icon indicating copy to clipboard operation
ggtree copied to clipboard

BiocManager::install("ggtree"), Error in get(x, envir = ns, inherits = FALSE) : object 'rect_to_poly' not found

Open danli349 opened this issue 1 year ago • 2 comments
trafficstars

Hi:

BiocManager::install("ggtree")

How to solve this error?

Bioconductor version 3.17 (BiocManager 1.30.22), R 4.3.0 (2023-04-21)
Installing package(s) 'ggtree'
trying URL 'https://bioconductor.org/packages/3.17/bioc/src/contrib/ggtree_3.8.2.tar.gz'
Content type 'application/gzip' length 360923 bytes (352 KB)
==================================================
downloaded 352 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) :
  object 'rect_to_poly' not found
Error: unable to load R code in package ‘ggtree’
Execution halted
ERROR: lazy loading failed for package ‘ggtree’
* removing ‘/home/dan/R/x86_64-pc-linux-gnu-library/4.03/ggtree’

Thanks a lot

danli349 avatar Aug 13 '24 20:08 danli349

The issue was fixed in the newest released version (ggtree == 3.12.0 with Bioconductor version 3.19). But your Bioconductor version is 3.17. You should first update your Bioconductor version by updating your R to 4.4.0. Or you can try to install the development version by remotes::install_github("YuLab-SMU/ggtree").

xiangpin avatar Aug 14 '24 02:08 xiangpin

@xiangpin Yes. Bioconductor version 3.19 solved this problem. Thanks

danli349 avatar Aug 14 '24 15:08 danli349