Skip to content

Instantly share code, notes, and snippets.

@stufield
Last active April 18, 2023 17:33
Show Gist options
  • Save stufield/f4e8e1a5cc3a78538074742203aa90c2 to your computer and use it in GitHub Desktop.
Save stufield/f4e8e1a5cc3a78538074742203aa90c2 to your computer and use it in GitHub Desktop.
Triple Colon Infix Operator
# This infix function allows you to
# `borrow` non-exported functions from
# a package but avoids the CMD check warning
# regarding ':::' usage.
"%:::%" <- function(p, f) {
get(f, envir = asNamespace(p))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment