R-4.3.1: could not find function "offspring.tbl_tree_item"
SessionInfo()
R version 4.3.1 (2023-06-16 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 11 x64 (build 22631)
Error:
! # Invaild edge matrix for
. A <tbl_df> is returned. ! # Invaild edge matrix for . A <tbl_df> is returned. ! # Invaild edge matrix for . A <tbl_df> is returned.
Error in offspring.tbl_tree_item(.data = .data, .node = .node, tiponly = tiponly, : could not find function "offspring.tbl_tree_item"
How do you do ?
How do you run what data for what kind of analysis? How was this issue resolved? Can you please provide more context about the problem you encountered?
I have the same issue on my Mac. It used to work. I just updated to the new release of Rstudio. maybe it has to do with that? also geom_highlight does not seem to work properly anymore.
The problem seems to be caused by the following file: "https://github.com/YuLab-SMU/tidytree/blob/master/R/offspring.R", the function name has been changed to ".offspring.tbl_tree_item". A temporary solution: One can rename it and then source it.
This issue can be resolved by: 2 line of command
offspring.tbl_tree_item <- getFromNamespace("offspring", "tidytree") assign("offspring.tbl_tree_item", offspring.tbl_tree_item, envir = .GlobalEnv)