All functions need a Carto user name and API key.
setup_key()
setup status message
file.edit("~/.Renviron")
to edit the environment
variable file
carto_acc = "your
user name"
carto_api_key = "your api key"
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.