mattroumaya / surveymonkey

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

"choice_id" not found #46

Closed aiccu closed 4 years ago

aiccu commented 4 years ago

Error in ~!is.na(choice_id) : object 'choice_id' not found In addition: Warning messages: 1: Unknown or uninitialised column: 'choice_id'. 2: Trying to compute distinct() for variables not found in the data:

sfirke commented 4 years ago

Thanks for posting your error message! I was able to recreate your error message by creating a survey with only simple question types. I have now pushed a commit that, at least for me, has addressed this. I'll close this issue, but please let me know if it persists after reinstalling the latest with devtools::install_github("tntp/surveymonkey").

aiccu commented 4 years ago

Fantastic - can confirm that it works albeit with the continued "Unknown or uninitialised column: 'choice_id'." warning message, which makes sense given your explanation.

This package will really streamline our workflow (in addition to your excellent Janitor package). Thanks a ton!

sfirke commented 4 years ago

Excellent. I'll reopen this as I should fix that warning too. Note to self, I think that involves moving the fix at https://github.com/tntp/surveymonkey/blob/master/R/assemble.R#L93 (and line 95) up to where x is created by the join at line 23. It's great to see this package getting used! 😄