eitsupi commented on code in PR #12744:
URL: https://github.com/apache/arrow/pull/12744#discussion_r847425708


##########
r/R/scalar.R:
##########
@@ -44,6 +58,8 @@
 #' Scalar$create(404)
 #' # If you pass a vector into Scalar$create, you get a list containing your 
items
 #' Scalar$create(c(1, 2, 3))
+#' # If you pass a data.frame with multiple columns into Scalar$create, you 
get the first row of the data.frame
+#' Scalar$create(mtcars)

Review Comment:
   It seems to me that users who have seen the results of feeding this function 
a data frame would be extraordinarily confused if it were not documented.
   (I don't understand what the intent of this behavior is either)



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