Open nestanyol opened 11 months ago
Yes! I plan on looking over what you've done now over the weekend and next week and make some issues, do some reviews and stuff 🤩
test_
files contain functions that are very very similar. Maybe try to consider ways to simplify it so you don't need to repeat the same code throughout them all.test_knn_regression()
has the title test_model_knn_regression
, which isn't very descriptive.return()
is used to output the end result of a function, in practice, we don't use it. See more details here: https://style.tidyverse.org/functions.html#returnpreprocess_data()
, call it simply preprocess()
).cutoff_subj
, consider keeping the full word instead for clarity of description. Ctrl-Shift-T
.devtools::document()
(Ctrl-Shift-D). To run that, you need to merge #39 first. You'll probably encounter a lot of errors and warnings as you update/fix your documentation within the package.Ctrl-Shift-E
. But only do that later, after dealing with all of theses :grin: @lwjohnst86 Nuria told me that it could be a good idea to join the training and testing functions into a single one. Shall we also put that in the to do list?
In general, it's best to keep functions small and very focused/targeted. So keeping the testing and training separate is better than having them together, especially since, looking at their code, they have quite a bit different in them.
I have implemented the suggestions in all the functions. I would like to start working on the unit tests, how shall I move forward? Shall I merge the unit test branch into main and the pull it in my branch (DDLS branch)?
Update: I followed the steps described in the test branch, got the folder and started working on it, I have unit test for all the functions now. It helped me a lot the example from Luke!
@lwjohnst86 Luke, which steps are we missing for building the R package? :) Any recommendations?