romainfrancois commented on a change in pull request #8197:
URL: https://github.com/apache/arrow/pull/8197#discussion_r494325934



##########
File path: r/R/ipc_stream.R
##########
@@ -90,16 +90,18 @@ write_to_raw <- function(x, format = c("stream", "file")) {
 #' open.
 #' @param as_data_frame Should the function return a `data.frame` (default) or
 #' an Arrow [Table]?
+#' @param filesystem A [FileSystem] where `file` can be found if it is a
+#' string file path; default is the local file system
 #' @param ... extra parameters passed to `read_feather()`.
 #'
 #' @return A `data.frame` if `as_data_frame` is `TRUE` (the default), or an
 #' Arrow [Table] otherwise
 #' @seealso [read_feather()] for writing IPC files. [RecordBatchReader] for a
 #' lower-level interface.
 #' @export
-read_ipc_stream <- function(file, as_data_frame = TRUE, ...) {
+read_ipc_stream <- function(file, as_data_frame = TRUE, filesystem = NULL, 
...) {
   if (!inherits(file, "InputStream")) {

Review comment:
       There are a lot of this happening. Does this really need `file=` and 
`filesystem`. Can this be something like: 
   
   ```r
   read_ipc_stream(filesystem$open(file))
   ```
   
   ?




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