Learn R Programming

octopusR (version 1.0.1)

set_api_key: Set the Octopus API key

Description

Set the Octopus API key to use. This will be stored as an environment variable. You should add OCTOPUSR_API_KEY = <api_key> to your .Renviron otherwise you will have to call this function every session.

Usage

set_api_key(api_key = NULL)

Value

No return value, called for side effects.

Arguments

api_key

Your API key. If you are an Octopus Energy customer, you can generate an API key on the developer dashboard.