YuLab-SMU / ggtree

:christmas_tree:Visualization and annotation of phylogenetic trees
https://yulab-smu.top/treedata-book/
830 stars 172 forks source link

Depends were removed from ggplot2 version 3.4.0 #548

Open Baohua-Chen opened 1 year ago

Baohua-Chen commented 1 year ago

When build ggtree version 3.6.0, two dependent function "warning_wrap" and "new_data_frame" were used to be imported from "ggplot2". However, these two functions were removed from the newest version of ggplot2 (3.4.0), which leads to failure in building ggtree 3.6.0. To solve this, one can install ggplot2 3.3.6 before install ggtree 3.6.0 OR copy these two functions into ggtree resource files.

nicolerg commented 1 year ago

544 has some details that may be helpful

Nazrath10R commented 1 year ago

@Baohua-Chen I have this error and am trying to stick to the ggplot version I have as other dependencies rely on it. Could you advise where to locate the warning_wrap function and where in ggtree's resource file to add it?