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
enw_formula_as_data_list()
s implementation could be improved to better align with DRY principles
#245
Labels
Comments
Thanks for this @pearsonca I agree the current implementation can be shortened though and this looks like a workable way of doing it. Would you like to take this on? If we act fast then we can get in it |
Perhaps leave it for another increment, and take advantage of the "good first issue"ness of it. |
seabbs
changed the title
DRY
Apr 22, 2023
enw_formula_as_data_list
enw_formula_as_data_list()
s implementation could be improved to better align with DRY principles
Lnrivas
added a commit
to Lnrivas/epinowcast
that referenced
this issue
Apr 24, 2023
Lnrivas
added a commit
to Lnrivas/epinowcast
that referenced
this issue
Apr 24, 2023
Lnrivas
added a commit
to Lnrivas/epinowcast
that referenced
this issue
Apr 24, 2023
9 tasks
9 tasks
10 tasks
seabbs
pushed a commit
to Lnrivas/epinowcast
that referenced
this issue
Apr 25, 2023
seabbs
pushed a commit
to Lnrivas/epinowcast
that referenced
this issue
Apr 25, 2023
seabbs
added a commit
that referenced
this issue
Apr 25, 2023
…nciples (#245) (#254) * Issue #245 * New contributor Lnrivas * Issue 245: Cleaning enw_formula_as_data_list() (#245) * fixed spacing * match original spacing style * Update R/model-tools.R to fix linting issues Co-authored-by: Hugo Gruson <Bisaloo@users.noreply.github.com> * Add @Bisaloo as a reviewer * Dropped news note about contributor change as we haven't been tracking * Debug @seabbs rebasing * reorder data list to match original code * dropped unneeded lint gates * turn into a normal list --------- Co-authored-by: Hugo Gruson <Bisaloo@users.noreply.github.com> Co-authored-by: Sam <s.e.abbott12@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
enw_formula_as_data_list
is a bit convoluted and breaks the DRY (don't repeat yourself) principle:epinowcast/R/model-tools.R
Lines 32 to 71 in c1d9bee
Seems would be clearer as roughly or similar:
Updating this would make the code easier to maintain and expand in the future.
The text was updated successfully, but these errors were encountered: