All functions need a Carto user name and API key.

setup_key()

Value

setup status message

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.