-
Notifications
You must be signed in to change notification settings - Fork 241
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
Updated load_data.R #1592 #2771
Conversation
removed library functions by appropriately providing namespaces to functions.
/document |
Thanks @moki1202 ! This looks great! FYI, the checks were failing because your changes call for an update to the automated package documentation (specifically, the However, no need to do that here because we have a GitHub Actions bot that will do it for you! My cryptic comment above activated our documentation bot, which will automatically run |
replaced require(bd) with requireNamespace(bd, quietly = TRUE ) in line 43
added 'bd' in the suggests section of modules/benchmark/DESCRIPTION
added comma after testthat (>= 2.0.0) (line 37) and 'BrownDog' packageName to suggests section.
/document |
@moki1202 Can you please add Extra credit if you want to bother reordering the existing import declarations so the whole listing is actually alphabetical, but clearly the rest of us haven't done that... 🙈 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully last tweaks. Thanks for sticking with this through so many rounds of 'one more thing', @moki1202 -- clearly this code was long overdue for a cleanup!
modules/benchmark/R/load_data.R
Outdated
@@ -44,13 +39,13 @@ load_data <- function(data.path, format, start_year = NA, end_year = NA, site = | |||
fcn <- match.fun(fcn1) | |||
} else if (exists(fcn2)) { | |||
fcn <- match.fun(fcn2) | |||
} else if (!exists(fcn1) & !exists(fcn2) & require(bd)) { | |||
} else if (!exists(fcn1) & !exists(fcn2) & requireNamespace(bd, quietly = TRUE)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} else if (!exists(fcn1) & !exists(fcn2) & requireNamespace(bd, quietly = TRUE)) { | |
} else if (!exists(fcn1) & !exists(fcn2) & requireNamespace("BrownDog", quietly = TRUE)) { |
SimilarityMeasures, | ||
zoo, | ||
stringr | ||
stringr, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stringr, | |
stringr, | |
tidyselect, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@infotroph ill get on this ASAP. also, the pleasure was mine, got to learn so much from you guys. thanks for being patient with me hehe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also please suggest any error fix that I can start working on after this.
removed library functions by appropriately providing namespaces to functions.