read_cdsapirc: Read CDS API credentials from ~/.cdsapirc file

View source: R/utils.R

read_cdsapircR Documentation

Read CDS API credentials from ~/.cdsapirc file

Description

Read CDS API credentials from ~/.cdsapirc file

Usage

read_cdsapirc(file_path = "~/.cdsapirc")

Arguments

file_path

Path to .cdsapirc file (default: "~/.cdsapirc")

Value

A named list of the fields in the file (typically url and key), or NULL if the file does not exist or cannot be parsed.

Examples

f <- tempfile()
writeLines(c("url: https://cds.climate.copernicus.eu/api", "key: abc-123"), f)
read_cdsapirc(f)

varunayan documentation built on Oct. 30, 2026, 1:07 a.m.