enrichplot icon indicating copy to clipboard operation
enrichplot copied to clipboard

R-4.3.1: could not find function "offspring.tbl_tree_item"

Open benben-miao opened this issue 2 years ago • 5 comments

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"

benben-miao avatar Jul 20 '23 10:07 benben-miao

How do you do ?

Leekate11 avatar Jul 23 '23 06:07 Leekate11

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?

Leekate11 avatar Jul 23 '23 06:07 Leekate11

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.

antoine4ucsd avatar Aug 05 '23 06:08 antoine4ucsd

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.

songofbin avatar Aug 07 '23 12:08 songofbin

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)

nitinShukla1912 avatar Nov 08 '23 03:11 nitinShukla1912