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)

Arguments

file

A filename.

verbose

Whether to print the result of reading from file, or not (the default).

Value

Invisibly returns the value of the environment variable QUALTRICS_KEY, after setting it as a side effect.

Details

The environment variable for the API key can be set during startup (recommended), interactively with Sys.setenv or through key_from_file.