The environment variable QUALTRICS_KEY
should give an API key for
communication with the Qualtrics survey platform. key_from_file
sets
it using the contents of a file.
key_from_file(file = ".api_key", verbose = FALSE)
file | A filename. |
---|---|
verbose | Whether to print the result of reading from |
Invisibly returns the value of the environment variable
QUALTRICS_KEY
, after setting it as a side effect.
The environment variable for the API key can be set during
startup (recommended), interactively with
Sys.setenv
or through key_from_file
.