Parquet data loader in R #916
Replies: 4 comments 7 replies
-
I have been able to correctly get a Parquet data loader in R as follows (on OSs with library(arrow)
df <- data.frame(
Name = c("Alice", "Bob", "Charlie", "Diana"),
Age = c(25, 30, 35, 40)
)
# Write the data frame to a temporary Parquet file
temp_file <- tempfile(fileext = ".parquet")
arrow::write_parquet(df, sink = temp_file)
system2('/bin/cat', args = temp_file) |
Beta Was this translation helpful? Give feedback.
-
A little bit too convoluted IMHO |
Beta Was this translation helpful? Give feedback.
-
@espinielli I'm trying to get a Parquet data loader working correctly in R as well, and have been trying to replicate what you've written above. I'm on a Windows machine, so I don't think the line How do I write this data to stdout? I keep getting the error |
Beta Was this translation helpful? Give feedback.
-
@chaz23 could you give a try to the following snippet?
|
Beta Was this translation helpful? Give feedback.
-
Originally posted by @espinielli in #873 (comment)
Beta Was this translation helpful? Give feedback.
All reactions