Register TfNSW API key.

tfnswapi_register(key, add_to_renviron = FALSE, overwrite = FALSE)

Arguments

key

Character. TfNSW API key.

add_to_renviron

Logical. Default is FALSE. If TRUE then the file directory of the authentication file will be added to your .Renviron file.

overwrite

Logical. Default is FALSE. If TRUE, the existing TFNSW_API_KEY R environment variable will be replaced with new key.

Examples

if (FALSE) {

tfnswapi_register(key = "your-key")

}