# Setting a key invisibly returns the previous value (NULL at first)
setAPIKey("exampleProvider", "abcd1234efgh5678")
old <- setAPIKey("exampleProvider", "newkey5678")
old
# Setting a key to NULL removes it
setAPIKey("exampleProvider", NULL)
getAPIKey("exampleProvider")
Run the code above in your browser using DataLab