get_key {weatherOz} | R Documentation |
Get or Set Up API Keys
Description
Checks first to get key from your .Rprofile or .Renviron (or similar) file. If it's not found, then it suggests setting it up. Can be used to check that your key that R is using is the key that you wish to be using or for guidance in setting up the keys.
Usage
get_key(service = c("DPIRD", "SILO"))
Arguments
service |
(character) The API host, either “DPIRD” or “SILO”. |
Details
The suggestion is to use your .Renviron to set up the API keys. However, if you regularly interact with the APIs outside of R using some other language you may wish to set these up in your .bashrc, .zshrc, or config.fish for cross-language use.
Value
A string value with either a DPIRD Weather 2.0 API or SILO API key value.
Examples
## Not run:
get_key(service = "DPIRD")
get_key(service = "SILO")
## End(Not run)
[Package weatherOz version 1.0.0 Index]