How can I find the R package where this new operator %||% is defined?
Asked
Active
Viewed 19 times
0
-
1Any package could define an implementation for that operator so it kind of depends on what you expect that operator to do. Perhaps the most common versions come from `purrr` or `rlang`. – MrFlick Sep 06 '22 at 20:08
-
2Using `getAnywhere("%||%")` will tell you . – Mohamed Desouky Sep 06 '22 at 20:12
-
getAnywhere will not tell you anything unless the package with that function is already loaded. As always the help page should be consulted: ``They do not search literally “anywhere”: for example, local evaluation frames and namespaces that are not loaded will not be searched`` – IRTFM Sep 06 '22 at 22:34