Error reading rst file

9 views
Skip to first unread message

Andy

unread,
Jul 25, 2023, 5:14:35 AM7/25/23
to ggtree
Hi!

While following the tutorial in the ggtree book, Chapter 2, section 2.2, I run into an error when I try to execute the read.rst function:

rst_file <- system.file("examples/rst", package="ggtree")
mlc_file <- system.file("examples/mlc", package="ggtree")

codeml_tree <- read.codeml(rst_file, mlc_file)

Error in strsplit(rst[idx + 2], split = " ") %>% unlist <- c("151", "1686" : could not find function "%>%<-"

Of course I have dplyr installed and loaded.

So, I tried reading the rst file and mlc files separately. The mlc file was read just fine using read.codeml_mlc(mlc_file).

But, when I run readlpaml_rst(rst_file), I get the same error!

I am wondering if something is corrupt in dplyr, because I am aware of "%>%", but not "%>%,<-"

Can anyone think of a workaround?

Thanks in advance...

A
Reply all
Reply to author
Forward
0 new messages