thisisnic commented on code in PR #50525:
URL: https://github.com/apache/arrow/pull/50525#discussion_r3634168194


##########
r/R/util.R:
##########
@@ -30,14 +30,135 @@ oxford_paste <- function(x, conjunction = "and", quote = 
TRUE, quote_symbol = '"
   }
 }
 
-assert_is <- function(object, class) {
-  msg <- paste(substitute(object), "must be a", oxford_paste(class, "or"))
-  assert_that(inherits(object, class), msg = msg)
+check_null <- function(x, msg = NULL, call = rlang::caller_env()) {
+  if (!is.null(x)) {
+    if (is.null(msg)) {
+      rlang::stop_input_type(
+        x,
+        what = "NULL",
+        call = call
+      )
+    } else {
+      abort(msg, call = call)
+    }
+  }
+}
+
+# copied from 
https://github.com/r-lib/rlang/blob/main/R/standalone-types-check.R
+# they are not licensed.

Review Comment:
   Would you mind explaining more about this - why copy them not import them, 
and what do you mean by not licensed?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to