qualtRics 2.0 now available from CRAN

[This article was first published on Jasper Ginn's blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

qualtRics version 2.0 is now available from CRAN. This version contains several additional features and simplifies the process of importing survey exports from Qualtrics. Below, I outline the most important changes. You can check the full changelog here.

qualtRics configuration file

In previous versions, users needed to register their API key by calling the registerApiKey() function to avoid having to pass it to each function. However, they did need to pass the root url to each function, which is annoying and inconsistent.

In this version, the registerApiKey() function has been replaced by registerOptions(), which stores both the API key and the root url in environment variables. It also stores several other options (e.g. verbose logs to the R console). You can find more information about this here

This version also supports the use of a configuration file called ‘.qualtRics.yml’ that the user can store in the working directory of an R project. If a config file is present in the working directory, then it will be loaded when the user loads the qualtRics library, eliminating the need to register credentials at all. You can find more information about this here.

getSurvey() supports all available parameters

The getSurvey() function now supports all parameters that the Qualtrics API provides. Concretely, I’ve added the following parameters since version 1.0:

  1. seenUnansweredRecode: Recode seen but unanswered questions with a string value.
  2. limit: Maximum number of responses exported. Defaults to NULL (all responses).
  3. useLocalTime: Use local timezone to determine response date values.
  4. includedQuestionIds: Export only specified questions.

You can use a new function called getSurveyQuestions() to retrieve a data frame of question IDs and labels, which you can in turn pass to the getSurvey() function to export only a subset of your questions.

getSurveys() retrieves > 100 surveys

In previous versions of qualtRics, getSurveys() only retrieved 100 results. It now fetches all surveys. If you manage many surveys, this does mean that it could take some time for the function to complete.

If you notice any issues with the package, or if you would like to suggest a feature, please leave a comment here.

To leave a comment for the author, please follow the link and comment on their blog: Jasper Ginn's blog.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)