Learn R Programming

rscorecard (version 0.2.4)

sc_key: Store Data.gov API key in system environment.

Description

This function stores your data.gov API key in the system environment so that you only have to load it once at the start of the session. If you set your key using sc_key, then you may omit api_key parameter in the sc_get function.

Usage

sc_key(api_key)

Arguments

api_key
Personal API key requested from https://api.data.gov/signup stored in a string.

Obtain a key

To obtain an API key, visit https://api.data.gov/signup.

Examples

Run this code
sc_key('<API KEY IN STRING>')

Run the code above in your browser using DataLab