Skip to content

Commit f27f400

Browse files
committed
deprecate ellipses
1 parent 11998d5 commit f27f400

4 files changed

Lines changed: 23 additions & 5 deletions

File tree

r/R/dataset.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ FileSystemDataset <- R6Class(
481481
file_type <- self$format$type
482482
pretty_file_type <- list(
483483
parquet = "Parquet",
484-
ipc = "IPC"
484+
ipc = "Arrow IPC"
485485
)[[file_type]]
486486

487487
paste(

r/R/ipc-stream.R

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,16 @@
3434
#' tf <- tempfile()
3535
#' on.exit(unlink(tf))
3636
#' write_ipc_stream(mtcars, tf)
37-
write_ipc_stream <- function(x, sink) {
37+
write_ipc_stream <- function(x, sink, ...) {
38+
if (length(list(...)) > 0) {
39+
.Deprecated(
40+
msg = paste(
41+
"Extra arguments passed through `...` in `write_ipc_stream()`",
42+
"are deprecated and ignored.",
43+
"They will be removed in a future version."
44+
)
45+
)
46+
}
3847
x_out <- x # So we can return the data we got
3948
x <- as_writable_table(x)
4049

@@ -98,7 +107,16 @@ write_to_raw <- function(x, format = c("stream", "file")) {
98107
#' with `as_data_frame = FALSE` and calling `$ValidateFull()` on the Table
99108
#' before processing.
100109
#' @export
101-
read_ipc_stream <- function(file, as_data_frame = TRUE) {
110+
read_ipc_stream <- function(file, as_data_frame = TRUE, ...) {
111+
if (length(list(...)) > 0) {
112+
.Deprecated(
113+
msg = paste(
114+
"Extra arguments passed through `...` in `read_ipc_stream()`",
115+
"are deprecated and ignored.",
116+
"They will be removed in a future version."
117+
)
118+
)
119+
}
102120
if (!inherits(file, "InputStream")) {
103121
file <- make_readable_file(file, random_access = FALSE)
104122
on.exit(file$close())

r/man/read_ipc_stream.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

r/man/write_ipc_stream.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)