Reputation: 23200
In R 3.2.0 on Windows, running the example code titled
"An Example with Data from the nycflights13 Package"
from
https://github.com/rich-iannone/DiagrammeR
leads to
Error: could not find function "%>>%"
Full, reproducible example:
I have tried this with both the CRAN and development versions of DiagrammeR
and I tried reinstalling Rgraphviz
but the results did not change.
Upvotes: 1
Views: 274
Reputation: 20463
Per @DavidArenburg's comment, the %>>%
operator is from the pipeR
package. Install it with install.packages("pipeR")
and then library(pipeR)
and the code should work.
Note that %>>%
is a pipeline operator. One could also use the single >
operator, that is %>%
, from the magrittr
package. For an excellent write-up on the differences, see this link
Upvotes: 2