You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "thisisnic (via GitHub)" <gi...@apache.org> on 2023/06/06 17:41:47 UTC

[GitHub] [arrow] thisisnic commented on a diff in pull request #35955: GH-35949: [R] File reader options class objects should print the selected values

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


##########
r/R/csv.R:
##########
@@ -464,10 +464,22 @@ CsvTableReader$create <- function(file,
 CsvReadOptions <- R6Class("CsvReadOptions",
   inherit = ArrowObject,
   public = list(
-    encoding = NULL
+    encoding = NULL,
+    print = function(...) {
+      cat("CsvReadOptions")
+      cat("\nencoding:", self$encoding)
+      cat("\ncolumn_names:", self$column_names)
+      cat("\nblock_size:", self$block_size)
+      cat("\nskip_rows:", self$skip_rows)
+      cat("\nautogenerate_column_names:", self$autogenerate_column_names)

Review Comment:
   Thanks! I was also checking in that there's no way of doing the other bits more programmatically, but doesn't appear to be, so I'll just plough on!



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