We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6c41c9 commit e0bc60fCopy full SHA for e0bc60f
R/utils-pipe.R
@@ -18,6 +18,21 @@ if (getRversion() >= "2.15.1") {
18
#' @return The result of calling `rhs(lhs)`.
19
NULL
20
21
+#' Null-coalescing operator
22
+#'
23
+#' See \code{rlang::\link[rlang:op-null-default]{\%||\%}} for details.
24
25
+#' @name %||%
26
+#' @rdname null_default
27
+#' @keywords internal
28
+#' @export
29
+#' @importFrom rlang %||%
30
+#' @usage lhs \%||\% rhs
31
+#' @param lhs Any R object, typically checked for `NULL`.
32
+#' @param rhs A default value to return if `lhs` is `NULL`.
33
+#' @return `lhs` if it is not `NULL`, otherwise `rhs`.
34
+NULL
35
+
36
37
#' @noRd
38
.onAttach <- function(...) {
0 commit comments