-
Notifications
You must be signed in to change notification settings - Fork 6
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
Set up lintr continuous integration and fix lints #58
Commits on Apr 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1aeb338 - Browse repository at this point
Copy the full SHA 1aeb338View commit details -
Do not use vector boolean operators & or | in if
Since they can return a logical of length > 1 which will produce an error in if Reported by lintr::vector_logic_linter()
Configuration menu - View commit details
-
Copy full SHA for 9c7b2a0 - Browse repository at this point
Copy the full SHA 9c7b2a0View commit details -
Use seq_along() and seq_len() rather than 1:x
To deal with the case when x is 0 Reported by lintr::seq_linter()
Configuration menu - View commit details
-
Copy full SHA for df24443 - Browse repository at this point
Copy the full SHA df24443View commit details -
Recommended by lintr::numeric_leading_zero_linter()
Configuration menu - View commit details
-
Copy full SHA for 17e5478 - Browse repository at this point
Copy the full SHA 17e5478View commit details -
Use TRUE/FALSE rather than T/F
Recommended by lintr::T_and_F_symbol_linter()
Configuration menu - View commit details
-
Copy full SHA for 14bce66 - Browse repository at this point
Copy the full SHA 14bce66View commit details -
Use any() rather than sum() > 0
Recommended by lintr::boolean_arithmetic_linter()
Configuration menu - View commit details
-
Copy full SHA for 8bf4f04 - Browse repository at this point
Copy the full SHA 8bf4f04View commit details -
Use log(c()) rather than c(log())
For better performance because log() is vectorized Recommended by lintr::inner_combiner_linter()
Configuration menu - View commit details
-
Copy full SHA for 8ed646c - Browse repository at this point
Copy the full SHA 8ed646cView commit details -
Remove unnecessary c() and replace %in% by ==
Recommended by lintr::unnecessary_concatenation_linter()
Configuration menu - View commit details
-
Copy full SHA for 33bff36 - Browse repository at this point
Copy the full SHA 33bff36View commit details -
Use paste0() rather than paste(sep = "")
Recommended by lintr::paste_linter()
Configuration menu - View commit details
-
Copy full SHA for da0f822 - Browse repository at this point
Copy the full SHA da0f822View commit details -
Put { back on the same line as }
Recommended by lintr::brace_linter()
Configuration menu - View commit details
-
Copy full SHA for 43114ed - Browse repository at this point
Copy the full SHA 43114edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9521f25 - Browse repository at this point
Copy the full SHA 9521f25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67a73b8 - Browse repository at this point
Copy the full SHA 67a73b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 745bb1c - Browse repository at this point
Copy the full SHA 745bb1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81ed9a5 - Browse repository at this point
Copy the full SHA 81ed9a5View commit details
Commits on Apr 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ecd20cc - Browse repository at this point
Copy the full SHA ecd20ccView commit details