What are some good patterns for development with packages that define the same function? In my case, lubridate and data.table both define wda
lubridate
data.table
wda
You can use ::, it helps to specify which package to use:
::
lubridate::wday function (x, label = FALSE, abbr = TRUE) UseMethod("wday") data.table::wday function (x) as.POSIXlt(x)$wday + 1L