Hi all,
I've recently started using tidyverse, instead of loading all the separate packages that I need regularly (e.g. dplyr, tidyr, magrittr). I'm a big fan of magrittr's piping operators and use them a lot. Additionally, I regularly use some of the aliases the package provides, like 'divide_by' instead of '/'.
However, it seems to me that these aliases have not been included in tidyverse, whereas the piping operators are. As a result, some of my code involving these aliases does not work when I only load tidyverse, so I have to load magrittr additionally. I've included reprex examples of both situations.
Example 1: loading magrittr - alias work:
library(magrittr)
test <- 5 %>%
divide_by(10)
test
#> [1] 0.5
Example 2: loading tidyverse - use of alias renders an error:
library(tidyverse)
test <- 5 %>%
divide_by(10)
#> Error in function_list[k]: could not find function "divide_by"
test
#> Error in eval(expr, envir, enclos): object 'test' not found
Could you confirm that magrittr's aliases have been left out of tidyverse? Thanks!