Skip to contents

mm_authorize() installs your credentials so that megamation functions that need them, like mm_data(), can use them automatically.

Specifically, it places your Megamation API key and base URL in your computer's megamation R package configuration files. Then, whenever the package is loaded, your credentials are available as environment variables.

Usage

mm_authorize(key, url)

Arguments

key

Single string of the Megamation API key.

url

Single string of the Megamation API base URL.

Value

Writes MEGAMATION_KEY and MEGAMATION_URL environment variables.

Examples

if (FALSE) { # \dontrun{
mm_authorize(
  key = "<YOUR-MEGAMATION_KEY>",
  url = "<YOUR-MEGAMATION_URL>"
)
} # }