setup_key: Set up Carto user name and API key with environment

Description Usage Arguments Details Value

Description

All functions need a Carto user name and API key.

Usage

1
setup_key(env_path = "~/.Renviron")

Arguments

env_path

path of environment file. Default as ~/.Renviron.

Details

  1. run file.edit("~/.Renviron") to edit the environment variable file

  2. add two lines

    • carto_acc = "your user name"

    • carto_api_key = "your api key"

  3. run setup_key().

Note if you want to remove the key and deleted the lines from ~/.Renviron, the key could still exist in environment. Restart R session to make sure it was removed.

For adding key or changing key value, edit and run setup_key() is enough.

Value

setup status message


dracodoc/rCartoAPI documentation built on May 15, 2019, 1:52 p.m.