Skip to contents

This code was adapted from tidycensus::census_api_key. Note that this saves your credentials in your .Renviron, meaning that anyone who is using your computer can theoretically access your username and password. So... use this carefully!

Usage

otn_set_credentials(network, temporary = FALSE, overwrite = FALSE)

Arguments

network

Character. Lowercase code of the desired telemetry network. One of "otn", "act", "atap", "itag", "migramar", "nep", "npact", "pirat", or "otn_devel" (the OTN development server). Note that "etn", "fact", "glatos", "path" and "raft" are accepted, but only to produce an error and redirect you.

temporary

Logical. Scrub credentials after the current session?

overwrite

Logical. Overwrite previously-stored credentials?

Examples

if (FALSE) { # \dontrun{
otn_set_credentials("act")
} # }
# Yup, that's it!