Last active
April 18, 2023 17:33
-
-
Save stufield/f4e8e1a5cc3a78538074742203aa90c2 to your computer and use it in GitHub Desktop.
Triple Colon Infix Operator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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