We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
%||%
1 parent 92d764d commit 9145728Copy full SHA for 9145728
NEWS.md
@@ -2,6 +2,9 @@
2
3
* Fix for CRAN checks.
4
5
+* `%||%` is now reexported from base on newer R versions. This avoids
6
+ conflict messages when attaching or importing rlang.
7
+
8
9
# rlang 1.1.2
10
R/operators.R
@@ -13,6 +13,12 @@
13
`%||%` <- function(x, y) {
14
if (is_null(x)) y else x
15
}
16
17
+# Reexport from base on newer versions of R to avoid conflict messages
18
+if (exists("%||%", envir = baseenv())) {
19
+ `%||%` <- get("%||%", envir = baseenv())
20
+}
21
22
`%|0|%` <- function(x, y) {
23
if (!length(x)) y else x
24
0 commit comments