Had not realized that R (>=4.0, per StackOverflow) provides selective function loading. Nice way to avoid naming conflicts.
Instead of barfing a package's entire namespace into your environment when you don't need to:
library(stringr, include.only = c("str_extract", "str_remove"))
#rstats
Instead of barfing a package's entire namespace into your environment when you don't need to:
library(stringr, include.only = c("str_extract", "str_remove"))
#rstats
Comments
library(stringr, exclude = "str_extract")
me.
Python has had something like this forever with its import method.
I've seen scripts, though, that literally prepend `dplyr::` to every. single. function. call.