Skip to contents

Overview

The R arrow package provides access to many of the features of the Apache Arrow C++ library for R users. The goal of arrow is to provide an Arrow C++ backend to dplyr, and access to the Arrow C++ library through familiar base R and tidyverse functions, or R6 classes. The dedicated R package website is located here.

To learn more about the Apache Arrow project, see the documentation of the parent Arrow Project. The Arrow project provides functionality for a wide range of data analysis tasks to store, process and move data fast. See the read/write article to learn about reading and writing data files, data wrangling to learn how to use dplyr syntax with arrow objects, and the function documentation for a full list of supported functions within dplyr queries.

Installation

The latest release of arrow can be installed from CRAN. In most cases installing the latest release should work without requiring any additional system dependencies, especially if you are using Windows or macOS.

If you are having trouble installing from CRAN, then we offer two alternative install options for grabbing the latest arrow release. First, R-universe provides pre-compiled binaries for the most commonly used operating systems.1

install.packages("arrow", repos = c("https://apache.r-universe.dev", "https://cloud.r-project.org"))

Second, if you are using conda then you can install arrow from conda-forge.

conda install -c conda-forge --strict-channel-priority r-arrow

There are some special cases to note:

  • On macOS, the R you use with Arrow should match the architecture of the machine you are using. If you’re using an ARM (aka M1, M2, etc.) processor use R compiled for arm64. If you’re using an Intel based mac, use R compiled for x86. Using R and Arrow compiled for Intel based macs on an ARM based mac will result in segfaults and crashes.

  • On Linux the installation process can sometimes be more involved because CRAN does not host binaries for Linux. For more information please see the installation guide.

  • If you are compiling arrow from source, please note that as of version 10.0.0, arrow requires C++17 to build. This has implications on Windows and CentOS 7. For Windows users it means you need to be running an R version of 4.0 or later. On CentOS 7, it means you need to install a newer compiler than the default system compiler gcc. See the installation details article for guidance.

  • Development versions of arrow are released nightly. For information on how to installl nightly builds please see the installing nightly builds article.

What can the arrow package do?

The Arrow C++ library is comprised of different parts, each of which serves a specific purpose. The arrow package provides binding to the C++ functionality for a wide range of data analysis tasks.

It allows users to read and write data in a variety formats:

  • Read and write Parquet files, an efficient and widely used columnar format
  • Read and write Arrow (formerly known as Feather) files, a format optimized for speed and interoperability
  • Read and write CSV files with excellent speed and efficiency
  • Read and write multi-file and larger-than-memory datasets
  • Read JSON files

It provides access to remote filesystems and servers:

  • Read and write files in Amazon S3 and Google Cloud Storage buckets
  • Connect to Arrow Flight servers to transport large datasets over networks

Additional features include:

  • Manipulate and analyze Arrow data with dplyr verbs
  • Zero-copy data sharing between R and Python
  • Fine control over column types to work seamlessly with databases and data warehouses
  • Toolkit for building connectors to other applications and services that use Arrow

What is Apache Arrow?

Apache Arrow is a cross-language development platform for in-memory and larger-than-memory data. It specifies a standardized language-independent columnar memory format for flat and hierarchical data, organized for efficient analytic operations on modern hardware. It also provides computational libraries and zero-copy streaming, messaging, and interprocess communication.

This package exposes an interface to the Arrow C++ library, enabling access to many of its features in R. It provides low-level access to the Arrow C++ library API and higher-level access through a dplyr backend and familiar R functions.

Arrow resources

There are a few additional resources that you may find useful for getting started with arrow:

Getting help

We welcome questions, discussion, and contributions from users of the arrow package. For information about mailing lists and other venues for engaging with the Arrow developer and user communities, please see the Apache Arrow Community page.

If you encounter a bug, please file an issue with a minimal reproducible example on GitHub issues. Log in to your GitHub account, click on New issue and select the type of issue you want to create. Add a meaningful title prefixed with [R] followed by a space, the issue summary and select component R from the dropdown list. For more information, see the Report bugs and propose features section of the Contributing to Apache Arrow page in the Arrow developer documentation.

Code of Conduct

Please note that all participation in the Apache Arrow project is governed by the Apache Software Foundation’s code of conduct.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy