Software
Placeholder

gargle

Infrastructure for calling Google APIs from R, including auth

R

gargle is an R package that simplifies working with Google APIs by handling authentication and HTTP request/response processing. It’s primarily designed for R package developers who are building wrappers around Google’s ~250 APIs, serving a similar role to Google’s official client libraries.

The package supports multiple authentication methods including service accounts, application default credentials, Google Compute Engine, workload identity federation, and OAuth2 browser flow. It provides enhanced OAuth2 token management with user-level caching and email-based identity tracking. gargle also includes utilities for preparing API requests (optionally using Discovery Document specifications), executing them, and processing responses.

Contributors