I'm having problems when creating a new operator that uses the magrittr pipe. It works well, just not with dot notation. Is there a simple way to make this work? Thanks!
`%>>>%` <- function(lhs, rhs) {
lhs <- paste0(lhs, "hello")
return(lhs %>% rhs)
}
"hello" %>>>% print
# [1] "hellohello"
"hello" %>>>% print(.)
# Error in print(.) : object '.' not found