Is it a good practice to call functions in a package via ::
问题 I'm writing some R functions that employ some useful functions in other packages like stringr and base64enc . Is it good not to call library(...) or require(... ) to load these packages first but to use :: to directly refer to the function I need, like stringr::str_match(...) ? Is it a good practice in general case? Or what problem might it induce? 回答1: It all depends on context. :: is primarily necessary if there are namespace collisions , functions from different packages with the same name