Learn R Programming

cancensus (version 0.4.8)

set_api_key: Set Censusmapper API key

Description

Cancensus requires a free Censusmapper API key to retrieve data. This function helps set the key for either the duration of the session (default) or permamently for use across sessions.

Usage

set_api_key(key, overwrite = FALSE, install = FALSE)

Arguments

key

a Censusmapper API key. For more information on keys see the API key section

overwrite

Option to overwrite any existing Censusmapper keys already stored locally.

install

Option to install permanently for use across sessions.

Examples

Run this code
# NOT RUN {
set_api_key("YOUR_CM_API_KEY")

# This will set the key permanently until ovewritten again
set_api_key("YOUR_CM_API_KEY", install = TRUE)
# }

Run the code above in your browser using DataLab