thisisnic commented on a change in pull request #10387:
URL: https://github.com/apache/arrow/pull/10387#discussion_r638834438



##########
File path: r/R/util.R
##########
@@ -110,3 +110,9 @@ handle_embedded_nul_error <- function(e) {
   }
   stop(e)
 }
+
+check_tabular <- function(x, format){
+  if(!inherits(x, "ArrowTabular")){
+    stop(paste0("Cannot write to ", format, ". 'x' must be an object of class 
'data.frame', 'RecordBatch', or 'Table', not '", class(x)[1], "'"))

Review comment:
       Great idea, have changed to use `rlang::abort`. 




-- 
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.

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


Reply via email to