-
Notifications
You must be signed in to change notification settings - Fork 0
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
Scorer rater #70
Scorer rater #70
Conversation
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.
@tomaszaba, see below for where your issues were arising from.
Please note also that I changed what you put in the README for the logo. nutriverse uses a very specific style for where the logo goes in the README file for GitHub. I will be very strict on this and will not compromise as this is nutriverse style.
You can merge this to dev and then the automated checks will activate for dev as well.
library(testthat) | ||
library(ipccheckr) | ||
library(mwana) | ||
|
||
test_check("ipccheckr") | ||
test_check("mwana") |
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.
you forgot to change these.
Some of the checks passed because you had ipccheckr installed on your computer. But if PRs to dev had the ci/cd activated, you would have seen where the problem is. I have now activated ci/cd to run when doing a push or a PR to dev
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.
Thank you Ernest.
@ernestguevarra |
Just to be clear here. I didn't tell you to not use I also checked on the latest version of |
Merge branch 'dev' into ScorerRater # Conflicts: # README.md # README.qmd # man/figures/README-workflow-1.png # man/figures/logo.png
Hi Ernest,
This PR is about changes of a collection of functions that executes the plausibility check. For this, there are many files changed.
Changes made span from re-factoring, changing of function names, documentation and revising the test suite. **However, there is error detected by
devtools::check()
.What about the error?
devtools::check()
detects errors in 37 tests. Apparently some functions are not being loaded withdevtools::check()
although they are listed in theNAMESPACE
file. I tried to troubleshoot, but unsuccessfully. All those tests are well constructed and they pass withdevtools::test()
ordevtools::test_active_file()
. Also, all examples and vignettes work, including those using functions not detected withdevtools::check()
. Please give me a hand on this.In terms of function organisation:
quality_raters.R
orquality_scorers.R
. None of the functions in these are exported.Function definition
testthat
. Regarding the tests, this time I make the use ofregexp
argument as I noticed that in my previous application (where I had not used this one), tests were passing not necessary for the exact reason why I expected it to pass.dplyr::group_by()
inside the function definition. I know you laughed at me back in March/April when I first wrote that code. I changed it now 😅. Changes were also made in respective vignettes.The amazing and nice looking
mwana
logo is now loaded as well. Please have a look if the placement is in line with theNutriverse
guidelines. I tried to follow the placement in thenipnTK
package.Thank you.