-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eliminate fetch_survey_obj step except for developers? #37
Comments
Really like the idea of having a third function that does both fetch_survey_obj and parse_survey. This would make it very simple for users; 1) browse_survey() to identify survey id, 2) use survey id in get_responses, then you have a tibble and are ready to start. |
Re naming scheme: If we want to follow the googlesheets package "gs_" scheme, maybe... then, sm_get_responses(): Both sm_fetch_survey_obj() + sm_read(). Like you mention, this would be the standard usage. |
I think I like the For developer functions, I could see splitting the
Then under the hood, This wouldn't be a huge rewrite. One outstanding question would be whether those 3 dev-facing functions should be exported, or internal. If internal we could still call them with |
The typical user won't get anything from the result of
fetch_survey_obj
, it's just an extra step. It's been very useful to me in developing the package but is a relic of that process.What's the best way to smooth that out? We could keep it two steps behind the scenes, and leave those functions accessible for those who want them, but chiefly promote a new function that would call both in one step. So maybe
get_responses(1234567890)
.a) is this the way to proceed? b) what should these three functions be called (currently
fetch_survey_obj
,parse_survey
, and the third doesn't exist)? Ideally we'd establish some kind of coherent naming scheme.The text was updated successfully, but these errors were encountered: