YuLab-SMU / ggtree

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

Issue with the attacher %<+% #554

Closed MaximePolicarpo closed 1 year ago

MaximePolicarpo commented 1 year ago

Hi !

Since few days, I can not use "%<+%" anymore on R. For example, when I try to run the example provided here : https://rdrr.io/bioc/ggtree/man/attacher.html :

nwk <- system.file("extdata", "sample.nwk", package="treeio")
tree <- read.tree(nwk)
p <- ggtree(tree)
dd <- data.frame(taxa=LETTERS[1:13],
         place=c(rep("GZ", 5), rep("HK", 3), rep("CZ", 4), NA),
             value=round(abs(rnorm(13, mean=70, sd=10)), digits=1))
row.names(dd) <- NULL
p %<+% dd + geom_text(aes(color=place, label=label), hjust=-0.5)

I get this error : could not find function "%<+%"

My ggtree package version is : ggtree_3.2.1 + ggtreeExtra_1.4.2

I don't really know where this problem could come from, knowing that it worked perfectly fine 1 week ago and I did not install any packages since ...

Thanks for any help or suggestion !

All the best ,

Maxime