set_ipums_api_key {ipumsr} | R Documentation |
Set your IPUMS API key
Description
Set your IPUMS API key as the value associated with the IPUMS_API_KEY
environment variable.
The key can be stored for the duration of your session or for future
sessions. If saved for future sessions, it is added to the .Renviron
file in your home directory. If you choose to save your key to .Renviron
,
this function will create a backup copy of the file before modifying.
This function is modeled after the census_api_key()
function
from tidycensus.
Learn more about the IPUMS API in vignette("ipums-api")
.
Usage
set_ipums_api_key(api_key, save = overwrite, overwrite = FALSE, unset = FALSE)
Arguments
api_key |
API key associated with your user account. |
save |
If |
overwrite |
If |
unset |
If |
Value
The value of api_key
, invisibly.
See Also
set_ipums_default_collection()
to set a default collection.