Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions r/tools/nixlibs.R
Original file line number Diff line number Diff line change
Expand Up @@ -519,3 +519,4 @@ if (!file.exists(paste0(dst_dir, "/include/arrow/api.h"))) {
cat("*** Proceeding without C++ dependencies\n")
}
}

23 changes: 16 additions & 7 deletions r/vignettes/flight.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,23 @@ vignette: >
is a general-purpose client-server framework for high performance
transport of large datasets over network interfaces, built as part of the
[Apache Arrow](https://arrow.apache.org) project.
The `arrow` package provides methods for connecting to Flight RPC servers

Flight allows for highly efficient data transfer as it:

* removes the need for deserialization during data transfer
* allows for parallel data streaming
* is highly optimized to take advantage of Arrow's columnar format.

The arrow package provides methods for connecting to Flight RPC servers
to send and receive data.

## Getting Started

The `flight` functions in the package use `reticulate` to call methods in the
`pyarrow` Python package. Before using them for the first time,
you'll need to be sure you have `reticulate`, and you'll also need to
install `pyarrow`:
The `flight` functions in the package use [reticulate](https://rstudio.github.io/reticulate/) to call methods in the
[pyarrow](https://arrow.apache.org/docs/python/api/flight.html) Python package.

Before using them for the first time,
you'll need to be sure you have reticulate and pyarrow installed:

```r
install.packages("reticulate")
Expand Down Expand Up @@ -74,5 +82,6 @@ client %>%
## 3 virginica 6.9
```

Because `flight_get()` returns an Arrow data structure, we can directly pipe
its result into a `dplyr` workflow.
Because `flight_get()` returns an Arrow data structure, you can directly pipe
its result into a [dplyr](https://dplyr.tidyverse.org/) workflow.
See `vignette("dataset", package = "arrow")` for more information on working with Arrow objects via a dplyr interface.