treetext = readLines("phyliptree-5.phy")
treetext = paste0(treetext, collapse="")
read.tree(text=treetext)
the above commands work for your tree file which split newick tree text to more than 10k lines and should be pasted to a single line.
--
G Yu, DK Smith, H Zhu, Y Guan, TTY Lam*. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data, Methods in Ecology and Evolution, 2017, 8(1):28-36. doi:10.1111/2041-210X.12628
Homepage: https://guangchuangyu.github.io/software/ggtree
---
You received this message because you are subscribed to the Google Groups "ggtree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bioc-ggtree+unsubscribe@googlegroups.com.
To post to this group, send email to bioc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/1a64a70b-d532-4867-a122-7e06f1ab4e0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.