Added 'metadata' function that allows the user to retrieve detailed metadata about survey.
User can now convert specific question types automatically. See this page for more information.
Using package httptest for mock API requests so that API calls can be tested.
getSurveys() and getSurveyQuestions() now return a tibble
Added .onDetach conditions so that environment variables (root url and API key) are removed when package is unloaded. This prevents issues if user decides to load the package again.
We found that surveys that use new lines in the questions break the readSurvey function.
The problem is, that read.csv (and read.table as well as the readr library implementation) ignore the quote = "\"" option when a skip = 2 or skip = 3 parameter is set. As a result the read function slices off the questions row somewhere in the middle when first importing just the table body using skip.
DEPRECATED AND DEFUNCT
convertstandardcolumns deprecated since readr::read_csv does this automagically. It has been changed in config file to 'convertvariables'.