Overwrite :: Operator

pkg::name

Arguments

pkg

package name: symbol or literal character string.

name

variable name: symbol or literal character string.

Works with symbols which point to strings representing packages

Debugging

To turn on debug mode, in which a message is printed whenever shorthand namespacing is in effect, set the option options(importAs.debug = TRUE)

Examples

## shorthand namespacing d <- "dplyr" d::select
#> function (.data, ...) #> { #> UseMethod("select") #> } #> <environment: namespace:dplyr>
## regular namespacing still works dplyr::select
#> function (.data, ...) #> { #> UseMethod("select") #> } #> <environment: namespace:dplyr>
"dplyr"::select
#> function (.data, ...) #> { #> UseMethod("select") #> } #> <environment: namespace:dplyr>