Learn R Programming

darksky (version 1.0.0)

darksky_api_key: Get or set DARKSKY_API_KEY value

Description

The API wrapper functions in this package all rely on a Dark Sky API key residing in the environment variable DARKSKY_API_KEY. The easiest way to accomplish this is to set it in the `.Renviron` file in your home directory.

Usage

darksky_api_key(force = FALSE)

Arguments

force
force setting a new Dark Sky API key for the current environment?

Value

atomic character vector containing the Dark Sky API key