sc_key {STATcubeR}R Documentation

Manage your API Keys

Description

Functions to get/set the STATcube API keys and make them available for calls against the STATcube API.

Usage

sc_key(server = "ext", test = FALSE)

sc_key_set(key, server = "ext", test = TRUE)

sc_key_get(server = "ext")

sc_key_prompt(server = "ext", test = TRUE)

sc_key_exists(server = "ext")

sc_key_valid(key = NULL, server = "ext")

Arguments

server

A STATcube API server. Defaults to the external Server via "ext". Other options are "red" for the editing server and "prod" for the production server. External users should always use the default option "ext".

test

Use sc_key_valid() to verify the key? If the key is invalid, an error is returned and the key will not be set or updated.

key

(string) An API key. To display your key, call sc_browse_preferences().

Value

All functions return the key (invisibly) except for sc_key_exists() and sc_key_valid(), which return a logical() of length one.

Functions


[Package STATcubeR version 1.0.0 Index]