mattroumaya / surveymonkey

Access your SurveyMonkey data directly from R!
https://mattroumaya.github.io/surveymonkey/
Other
42 stars 10 forks source link

empty contact field in metadata causes parse_response to fail #53

Closed sfirke closed 4 years ago

sfirke commented 4 years ago

When a response has an empty $contact in $metadata:

> response$metadata
$contact
named list()

causes merging of out with a zero-row data.frame in the line merge(out, metdata_vars_df), which ultimately causes parse_survey to fail with:

Error in $<-.data.frame(*tmp*, "col_id", value = NAcharacter) : replacement has 1 row, data has 0