cloudyr / qualtrics

An R Client for Qualtrics
GNU General Public License v3.0
6 stars 2 forks source link

try to read key and subdomain from the disk if environment variables aren't set #2

Closed jamesdunham closed 7 years ago

jamesdunham commented 7 years ago

qualtrics functions that make API requests take arguments key and subdomain, so users can provide these in the function call. The arguments' defaults are Sys.getenv("QUALTRICS_KEY") and Sys.getenv("QUALTRICS_SUBDOMAIN"), so if omitted, these environment variables are checked next.

Functions should also make a final attempt to read a key and subdomain from the disk, at some recommended location like ~/.qualtrics_api, as we discussed in the github.io thread.