Skip to content

Commit

Permalink
move %||% into aaa.R
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Sep 10, 2024
1 parent 65c55d7 commit 299ae86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions R/aaa.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@


`%||%` <- function(x, y) if (is.null(x)) y else x

new_function <- function(args = NULL,
body = NULL,
env = asNamespace("S7")) {
Expand Down
1 change: 0 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ global_variables <- function(names) {

vlapply <- function(X, FUN, ...) vapply(X = X, FUN = FUN, FUN.VALUE = logical(1), ...)
vcapply <- function(X, FUN, ...) vapply(X = X, FUN = FUN, FUN.VALUE = character(1), ...)
`%||%` <- function(x, y) if (is.null(x)) y else x

method_signature <- function(generic, signature) {
single <- length(generic@dispatch_args) == 1
Expand Down

0 comments on commit 299ae86

Please sign in to comment.