Description Usage Arguments Details Value Note Author(s)
Store the ‘twelvedata’ API key
1 | store_key(apikey)
|
apikey |
A character variable with the API key |
An API key is required to access the functionality offered by the
‘twelvedata’. This function can store a copy in a per-user
configuration file. It relies on a the base R function R_user_dir
which offers a per-user configuration directory for the package. No
file or directory permissions are set explicitly or changed. As an
alternative the key can also be set in the environment variable
TWELVEDATA_API_KEY
but doing so is the responsibility of the user.
TRUE
is return invisibly but the function is invoked for the
side effect of storing the API key.
This function requires R version 4.0.0 or later to utilise the per-user
config directory accessor function. For older R versions, please use the alternate
approach of storying the API in the environment variable TWELVEDATA_API_KEY
.
Dirk Eddelbuettel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.