qualtRics icon indicating copy to clipboard operation
qualtRics copied to clipboard

Reorganize .R files around endpoints?

Open jmobrien opened this issue 2 years ago • 2 comments

I've been thinking about the need to revamp URL generation for #294, the number of new and pending new functions, and the casual discussion about where to place new things such as in #299 and/or #302. Also was doing some things over at haven that had me looking at a recent organization change.

Got me wondering if we might do well to start a file structure that organizes functions differently. Currently wondering about organizing files around major API endpoints, like the ones for surveys, responses, and mailing lists.

Related potential ideas, pretty independent so could consider separately:

  • organize files by major endpoint groups
  • files also have endpoint-associated info/functions that guide url building (since this might help with swapping out to mock servers for tests, and/or can be re-used to build new functions.)
  • check functions unique to specific endpoints/functions go in section in same file for easier review/management
  • general-purpose check functions folded into utils.R to reduce clutter (delete checks.R)
  • others?

jmobrien avatar Dec 19 '22 15:12 jmobrien