Closed nelsonruth11 closed 10 months ago
Did you try re-install ggtree
using BiocManager::install("ggtree", force=T, type = 'source')
?
I have, but that also errored:
> BiocManager::install("ggtree", force=T, type = 'source')
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package = "BiocManager")' for details.
Replacement repositories:
CRAN: https://cran.rstudio.com/
Bioconductor version 3.15 (BiocManager 1.30.22), R 4.2.1 (2022-06-23)
Installing package(s) 'ggtree'
trying URL 'https://bioconductor.org/packages/3.15/bioc/src/contrib/ggtree_3.4.4.tar.gz'
Content type 'application/gzip' length 356386 bytes (348 KB)
==================================================
downloaded 348 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 'warning_wrap' not found
Error: unable to load R code in package ‘ggtree’
Execution halted
ERROR: lazy loading failed for package ‘ggtree’
* removing ‘/Users/nruth/Library/R/x86_64/4.2/library/ggtree’
* restoring previous ‘/Users/nruth/Library/R/x86_64/4.2/library/ggtree’
The downloaded source packages are in
‘/private/var/folders/30/w80ljzj12zxdg2rn5tqr9th40015b6/T/RtmpEoEOmK/downloaded_packages’
Installation paths not writeable, unable to update packages
path: /Library/Frameworks/R.framework/Versions/4.2/Resources/library
packages:
boot, class, cluster, codetools, foreign, KernSmooth, lattice, MASS, mgcv, nlme, nnet, rpart, spatial, survival
Old packages: 'classInt', 'flextable', 'Matrix', 'MatrixModels', 'mvtnorm', 'RcppArmadillo', 'terra', 'tidytree'
Rolling back tidytree to 0.4.2 didn't work either
This is because you use Bioconductor version 3.15
, an old version. Now the released version of Bioconductor
is 3.17
. You should update Bioconductor
first, Or you can try re-install ggtree
using remotes::install_github('YuLab-SMU/ggtree')
.
I stepped away for a few days and now things work. Still on the same BiocManager, ggtree 3.4.4, ggtreeExtra 1.6.1. Thanks for your help and a great package, closing.
I'm not sure it belongs here, but I want to mention the following experience:
I stumbled upon this (getting could not find function "offspring.tbl_tree_item
with geom_cladelab
) today when creating a conda environment with the latest version of bioconda/bioconductor-ggtree which is 3.8.0, under Linux. Updating to 3.8.2 manually is highly undesirable under this scenario.
Noting that I ran into the same bug, (getting could not find function "offspring.tbl_tree_item
with geom_cladelab
) today.
I fixed it by reinstalling packages as described:
devtools::install_version("tidytree", version = "0.4.2")
BiocManager::install("ggtree", force=T, type = 'source')
It would still be great to fix the most recent package versions to remove the bug.
Prerequisites
Describe you issue
Ask in right place
The functions I'm attempting to use are get_taxa_name and collapse. get_taxa_name works when I don't specify a node, but breaks when I do specify a node. Collapse breaks every time.
Both provide the same error message:
I have seen this issue: https://github.com/YuLab-SMU/tidytree/issues/42 and done the troubleshooting methods there, but nothing worked.
The solutions proposed here did not work either: https://support.bioconductor.org/p/9153297/#9153353
Thanks,
-Nelson