23 new function aggregate lineparts sfr#58
Conversation
There was a problem hiding this comment.
The function works, however, I have a few changes that would need to be adressed:
- Fix the notes that pop up after running devtools::check().
The most apparent one is the no visible binding for global variable "variable_name". This is what I wrote in my notes: The “no visible binding” note is a peculiarity of using dplyr and unquoted variable names inside a package, where the use of bare variable names looks suspicious. You can add either of these lines to any file below R/ to eliminate this note (such as the package-level documentation file described in Section 16.7):
# option 1 (then you should also put utils in Imports)
utils::globalVariables(c("english", "temp"))
# option 2
english <- temp <- NULL
- Not a problem, but in the issue description you have a to do point that asks to add a description tag, and this tag is missing.
- Fix the following warning that popped up when running the function:
Warning messages: 1: Using one column matrices in filter() was deprecated in dplyr 1.1.0. ℹ Please use one dimensional logical vectors instead. ℹ The deprecated feature was likely used in the fistools package. Please report the issue to the authors. This warning is displayed once every 8 hours. Call lifecycle::last_lifecycle_warnings() to see where this warning was generated. 2: There was 1 warning in stopifnot(). ℹ In argument: min = min(distance, na.rm = TRUE). Caused by warning in min(): ! no non-missing arguments to min; returning Inf 3: There was 1 warning in stopifnot(). ℹ In argument: min = min(distance, na.rm = TRUE). Caused by warning in min(): ! no non-missing arguments to min; returning Inf
|
Some small extra comments (I can't highlight them in the code since I already turned in my review):
|
|
I didn't know |
|
Uit mijn beperkte test 🔬 blijkt dat het resultaat van beide functies esthetisch vergelijkbaar is (zie kaartje en code onder). Maar er zijn wel wat verschillen:
=> conclusion I'll fix the requested changes !! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #58 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 16 20 +4
Lines 815 1034 +219
======================================
- Misses 815 1034 +219 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
andere globalvariables zullen we in een aparte issue aanpakken. #58

fixes #23
een functie die stukjes van een lijn aan elkaar verbind