You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/11 14:59:33 UTC

[GitHub] [arrow] eitsupi commented on a diff in pull request #12744: MINOR: [R][DOCS] Add sections about `Scalar$create()`

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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org