Skip to contents

Lists the services for which metacheck uses an API key, whether a key is set, and whether one was recently refused or reached its limit. On a shared server (the metacheck apps and API) the keys are the server's own; the apps show the message to visitors so they can enter their own key.

Usage

api_key_status()

Value

a data frame with one row per service: service, label, key ("user", "server" or "none", see api_keys_use()), problem (NA, "rejected" or "limit"), until (when a limit ends), url (where a key is made) and message (NA without a problem)

Details

Problems are recorded in a file in metacheck's state folder, shared by every R session of the same user on the computer. Its location is the metacheck.state.dir option, else the METACHECK_STATE_DIR environment variable, else a folder state in tools::R_user_dir("metacheck", "data").

See also

Examples

api_key_status()[, c("service", "key", "problem")]
#>       service    key problem
#> 1      github server    <NA>
#> 2         osf   none    <NA>
#> 3       dryad   none    <NA>
#> 4 researchbox   none    <NA>
#> 5      gitlab   none    <NA>
#> 6    openalex   none    <NA>