Set the user's Baseline API subscription key in order to make the API calls.
Source:R/baseline_set_subscription_key.R
baseline_set_subscription_key.RdThe API subscription key will be stored as an environment variable named "BASELINE_DTM_SUBSCRIPTION_KEY".
Arguments
- ...
Any argument here is ignored. It exists solely to discourage typing in the subscription key directly, e.g.
baseline_set_subscription_key("mysubscriptionkeyhere"), since doing so will only result in the user being prompted to type the subscription key in a graphical user interface. Rather, if the user wishes to set the subscription key through the console / by programmatic means, then the user must explicitly pass the argument to thekeyparameter as a named parameter. E.g.baseline_set_subscription_key(key = "mysubscriptionkeyhere").- key
Either NULL or a string representing the key. NULL is preferable: using it will prompt the user to type the subscription key in a graphical user interface that masks it.
Examples
if (FALSE) { # \dontrun{
# Generally, calling `baseline_set_subscription_key()` without the key as an
# argument is best, as the user can then be prompted to input the key without
# typing it directly into the console, making it more secure and less
# likely to exposed.
baseline_set_subscription_key()
} # }