I am just learning the gestalt package
one reason I am interested is because it supposed to make clearer error messages for functions deployed with a package
however, the error message looks worse in my initial attempt
# investigate impact of error msg returned by %>% and %>>>%
library(magrittr)
library(gestalt)
pipe.func <- function(x){
x %>% log %>% c(0, .) %>% pretty %>% tail(1)
}
ges.func <- {
log %>>>% c(0, .) %>>>% pretty %>>>% tail(1)
}
pipe.func(5); ges.func(5)
pipe.func(-5)
ges.func(-5)
suspect I am thinking of it wrong and would appreciate guidance