Skip to content
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

Lint #287

Merged
merged 3 commits into from
Jul 25, 2024
Merged

Lint #287

merged 3 commits into from
Jul 25, 2024

Conversation

zachmayer
Copy link
Owner

@zachmayer zachmayer commented Jul 24, 2024

Add a bunch more linters

TODO (follow up PR):

  • implicit_assignment_linter
  • expect_identical_linter
  • undesirable_function_linter (maybe)

todo_comment_linter - FOLLOW UP PR

Copy link
Contributor

coderabbitai bot commented Jul 24, 2024

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The changes introduce several enhancements across multiple files, including the addition of a GitHub Actions workflow for reverse dependency checks, updates to linting configurations, and improvements in documentation and testing for the caretEnsemble and caretList packages. These modifications focus on enhancing code quality, clarifying documentation, and increasing the robustness of tests while preserving existing functionality.

Changes

Files Change Summary
.github/workflows/recheck.yml Added a workflow for manual reverse dependency checks with a user-defined parameter for selecting dependent types.
.lintr Updated linting tags and modified the set of linters for improved code quality checks and organization.
R/caretEnsemble.R & R/caretList.R Enhanced string matching in varImpFrame and improved documentation clarity and function logic within caretList.
R/caretStack.R Reformatted documentation for better readability; no changes in functionality.
R/helper_functions.R Improved code clarity with consolidated checks and streamlined error messages.
revdep/README.md Updated environment and dependency metadata reflecting new software versions.
tests/testthat/*.R Numerous tests across various files improved for clarity and semantic correctness, including specific assertion replacements and formatting enhancements.
vignettes/caretEnsemble-intro.Rmd Added library calls for dependencies; refined code snippets and improved documentation clarity.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant GitHubActions
    participant recheckWorkflow

    User->>GitHubActions: Trigger reverse dependency check
    GitHubActions->>recheckWorkflow: Execute recheck with parameters
    recheckWorkflow-->>User: Return results of the dependency check
Loading

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Outside diff range, codebase verification and nitpick comments (1)
revdep/README.md (1)

19-19: Fix the missing punctuation.

A punctuation mark might be missing here.

- |Δ  |
+ |Δ  |.
Tools
LanguageTool

[uncategorized] ~19-~19: A punctuation mark might be missing here.
Context: ...|Δ | |:-------------|:-----|:-----|:--| |caretEnsemble |2.0.3 |2.0.4 |* | # Re...

(AI_EN_LECTOR_MISSING_PUNCTUATION)

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 6fa7823 and 04a44f5.

Files selected for processing (18)
  • .github/workflows/recheck.yml (1 hunks)
  • .lintr (1 hunks)
  • R/caretEnsemble.R (1 hunks)
  • R/caretList.R (10 hunks)
  • R/caretStack.R (3 hunks)
  • R/helper_functions.R (11 hunks)
  • man/caretStack.Rd (2 hunks)
  • man/dotplot.caretStack.Rd (1 hunks)
  • revdep/README.md (1 hunks)
  • tests/testthat/test-S3-generic-extensions.R (11 hunks)
  • tests/testthat/test-caretEnsemble.R (7 hunks)
  • tests/testthat/test-caretList.R (12 hunks)
  • tests/testthat/test-caretStack.R (8 hunks)
  • tests/testthat/test-classSelection.R (3 hunks)
  • tests/testthat/test-ensembleMethods.R (1 hunks)
  • tests/testthat/test-helper_functions.R (10 hunks)
  • tests/testthat/test-multiclass.R (8 hunks)
  • vignettes/caretEnsemble-intro.Rmd (6 hunks)
Files skipped from review due to trivial changes (6)
  • R/caretList.R
  • R/caretStack.R
  • R/helper_functions.R
  • man/caretStack.Rd
  • man/dotplot.caretStack.Rd
  • tests/testthat/test-ensembleMethods.R
Additional context used
LanguageTool
revdep/README.md

[uncategorized] ~19-~19: A punctuation mark might be missing here.
Context: ...|Δ | |:-------------|:-----|:-----|:--| |caretEnsemble |2.0.3 |2.0.4 |* | # Re...

(AI_EN_LECTOR_MISSING_PUNCTUATION)

Additional comments not posted (62)
.github/workflows/recheck.yml (3)

1-10: LGTM! The workflow dispatch event and inputs are well-defined.

The workflow_dispatch event allows manual triggering of the workflow with inputs, which are clearly defined.


11-11: LGTM! The workflow name is clear and descriptive.

The name "Reverse dependency check" accurately describes the purpose of the workflow.


13-18: LGTM! The job configuration is clear and correctly uses an external workflow.

The job revdep_check uses an external workflow and correctly passes the input which to it.

revdep/README.md (2)

3-14: LGTM! The platform metadata updates are appropriate.

The updates reflect new versions of R, macOS, architecture, UI, and Pandoc, keeping the environment up-to-date.


20-20: LGTM! The dependency update is appropriate.

The update reflects a minor version change for the caretEnsemble package from 2.0.3 to 2.0.4.

.lintr (2)

3-17: LGTM! The updates to the linter tags are appropriate.

The new tags added enhance the categorization of linting rules, improving clarity and organization.


20-26: LGTM! The updates to the linters are appropriate.

The changes include adding new linters, adjusting existing ones, and marking some for future refactoring, aligning with best practices for code quality checks.

tests/testthat/test-classSelection.R (3)

15-15: Improved readability with explicit numeric literal.

Using 0.8 instead of .8 enhances readability and clarity.


29-29: Improved test specificity with expect_length.

Replacing expect_equal with expect_length enhances the specificity of the test assertions.


70-77: Enhanced readability with multiline ifelse statement.

Reformatting the ifelse statement into a multiline structure improves readability and clarity.

tests/testthat/test-S3-generic-extensions.R (11)

76-77: Improved clarity and specificity in assertions.

Replacing expect_true(length(names(bigList)) == length(unique(names(bigList)))) with expect_identical(anyDuplicated(names(bigList)), 0L) and expect_equal(length(unique(names(bigList))), 4) with expect_length(unique(names(bigList)), 4) enhances the clarity and specificity of the assertions.


86-87: Improved clarity and specificity in assertions.

Replacing expect_true(length(names(bigList)) == length(unique(names(bigList)))) with expect_identical(anyDuplicated(names(bigList)), 0L) and expect_equal(length(unique(names(bigList))), 3) with expect_length(unique(names(bigList)), 3) enhances the clarity and specificity of the assertions.


106-107: Improved clarity and specificity in assertions.

Replacing expect_true(length(names(bigList)) == length(unique(names(bigList)))) with expect_identical(anyDuplicated(names(bigList)), 0L) and expect_equal(length(unique(names(bigList))), 2) with expect_length(unique(names(bigList)), 2) enhances the clarity and specificity of the assertions.


131-131: Improved clarity and specificity in assertion.

Replacing expect_equal(length(unique(names(bigList))), length(models.class)) with expect_length(combined_models, length(models.class)) enhances the clarity and specificity of the assertion.


143-143: Improved clarity and specificity in assertion.

Replacing expect_equal(length(unique(names(bigList))), 3) with expect_length(combined_models, 3) enhances the clarity and specificity of the assertion.


154-154: Improved clarity and specificity in assertion.

Replacing expect_equal(length(unique(names(bigList))), 2) with expect_length(combined_models, 2) enhances the clarity and specificity of the assertion.


166-166: Improved clarity and specificity in assertion.

Replacing expect_equal(length(unique(names(bigList))), 4) with expect_length(combined_models, 4) enhances the clarity and specificity of the assertion.


179-179: Improved clarity and specificity in assertion.

Replacing expect_equal(length(unique(names(bigList))), 2) with expect_length(subset_models, 2) enhances the clarity and specificity of the assertion.


188-188: Improved clarity and specificity in assertion.

Replacing expect_equal(length(unique(names(bigList))), 2) with expect_length(caretlist_object, 2) enhances the clarity and specificity of the assertion.


202-202: Improved clarity and specificity in assertion.

Replacing expect_equal(names(cl), unname(sapply(models.class, "[[", "method"))) with expect_named(cl, unname(sapply(models.class, "[[", "method"))) enhances the clarity and specificity of the assertion.


224-224: Improved clarity and specificity in assertion.

Replacing expect_equal(ncol(class_probs), length(models.class) * nlevels(Y.class)) with expect_equal(ncol(class_probs), length(models.class) * nlevels(Y.class)) enhances the clarity and specificity of the assertion.

tests/testthat/test-caretEnsemble.R (7)

58-58: Improved clarity and specificity in assertions.

Replacing expect_true(is.numeric(r)) with expect_is(r, "numeric") and expect_equal(length(r), 150) with expect_length(r, 150) enhances the clarity and specificity of the assertions.


75-76: Improved clarity and specificity in assertions.

Replacing expect_true(is.numeric(pred.reg)) with expect_type(pred.reg, "double") and expect_equal(length(pred.reg), 150) with expect_length(pred.reg, 150L) enhances the clarity and specificity of the assertions.


80-81: Improved clarity and specificity in assertions.

Replacing expect_true(is.data.frame(pred.class)) with expect_s3_class(pred.class, "data.frame") and expect_true(nrow(pred.class) == 150) with expect_equal(nrow(pred.class), 150L) enhances the clarity and specificity of the assertions.


92-92: Improved clarity and specificity in assertion.

Replacing expect_true(all(names(p2) == c("fit", "lwr", "upr"))) with expect_named(p2, c("fit", "lwr", "upr")) enhances the clarity and specificity of the assertion.


96-96: Improved clarity and specificity in assertion.

Replacing expect_true(all(p1 == p3)) with expect_equivalent(p1, p3) enhances the clarity and specificity of the assertion.


142-143: Improved clarity and specificity in assertions.

Replacing expect_true(is.numeric(pred.nest)) with expect_type(pred.nest, "double") and expect_equal(length(pred.nest), 150) with expect_length(pred.nest, 150) enhances the clarity and specificity of the assertions.


166-166: Improved clarity and specificity in assertion.

Replacing expect_true(length(pred.regc) == 1) with expect_length(pred.regc, 1) enhances the clarity and specificity of the assertion.

vignettes/caretEnsemble-intro.Rmd (1)

12-18: LGTM! Library calls improve clarity.

The added library calls for caretEnsemble, caret, mlbench, plyr, and caTools improve clarity regarding dependencies.

tests/testthat/test-caretStack.R (3)

25-26: LGTM! Improved readability and specificity in assertions.

The use of expect_type and expect_length improves readability and ensures that the expected types and lengths are checked directly.


41-44: LGTM! Stricter comparison for row count.

The use of expect_identical ensures both the value and type are the same, providing a stricter comparison.


128-128: LGTM! More efficient method for generating random indices.

The update from sample to sample.int is more efficient and idiomatic.

tests/testthat/test-multiclass.R (7)

28-28: LGTM! Improved readability with specific expectation function.

The use of expect_length improves readability by using a more specific expectation function.


98-98: LGTM! Semantically accurate checks.

The use of expect_length ensures that the checks are more semantically accurate and aligned with the intended functionality.


127-136: LGTM! Enhanced readability and maintainability.

The formatting changes to the tuneList within the caretModelSpec enhance readability and maintainability without altering the logic.


161-161: LGTM! More efficient method for generating training indices.

The update from sample(seq_len(n), n * 0.8) to sample.int(n, n * 0.8) is more efficient and idiomatic.


192-192: LGTM! Clearer accuracy assertion.

The refinement from expect_true(cm$overall["Accuracy"] > 0.9) to expect_gt(cm$overall["Accuracy"], 0.9) makes it clearer that the test checks for a value greater than 0.9.


308-309: LGTM! More explicit class type check.

The change from expect_true(is.ordered(preds)) to expect_s3_class(preds, "ordered") provides a more explicit check for the class type.


335-335: LGTM! Consistent and accurate probability predictions.

The check ensures that the sum of probabilities is close to 1, confirming the consistency and accuracy of probability predictions.

R/caretEnsemble.R (1)

212-212: LGTM! The addition of fixed = TRUE to grep improves performance and ensures literal matching.

This change enhances the efficiency and correctness of the string matching process.

tests/testthat/test-helper_functions.R (12)

58-59: LGTM! The use of expect_length improves the clarity of the test.

This change makes the test more readable and specific.


76-77: LGTM! The use of expect_length improves the clarity of the test.

This change makes the test more readable and specific.


119-119: LGTM! The use of expect_equal with tolerance improves the clarity of the test.

This change makes the test more readable and specific.


128-131: LGTM! The use of expect_false for NA checks improves the clarity of the test.

This change makes the test more readable and specific.


146-147: LGTM! The use of expect_error for error checks improves the clarity of the test.

This change makes the test more readable and specific.


364-365: LGTM! The use of expect_named improves the clarity of the test.

This change makes the test more readable and specific.


371-372: LGTM! The use of expect_error improves the clarity of the test.

This change makes the test more readable and specific.


378-379: LGTM! The use of expect_error improves the clarity of the test.

This change makes the test more readable and specific.


385-386: LGTM! The use of expect_error improves the clarity of the test.

This change makes the test more readable and specific.


392-393: LGTM! The use of expect_error improves the clarity of the test.

This change makes the test more readable and specific.


431-436: LGTM! The use of expect_named improves the clarity of the test.

This change makes the test more readable and specific.


83-83: Consider using expect_identical for dimension checks.

Use expect_identical instead of expect_true(all(dim(out) == c(150L, 4L))) for better readability.

-  expect_true(all(dim(out) == c(150L, 4L)))
+  expect_identical(dim(out), c(150L, 4L))

Likely invalid or redundant comment.

tests/testthat/test-caretList.R (10)

28-29: LGTM! The use of expect_type and expect_length improves the clarity of the test.

This change makes the test more readable and specific.


42-49: LGTM! The use of expect_length improves the clarity of the test.

This change makes the test more readable and specific.


83-94: LGTM! The use of expect_error and expect_is improves the clarity of the test.

This change makes the test more readable and specific.


119-127: LGTM! The use of expect_named improves the clarity of the test.

This change makes the test more readable and specific.


189-190: LGTM! The updated error message improves clarity.

This change makes the error message more readable and specific.


196-197: LGTM! The updated error message improves clarity.

This change makes the error message more readable and specific.


200-200: LGTM! The updated error message improves clarity.

This change makes the error message more readable and specific.


217-236: LGTM! The use of expect_named improves the clarity of the test.

This change makes the test more readable and specific.


678-679: LGTM! The updated error message improves clarity.

This change makes the error message more readable and specific.


699-700: LGTM! The updated error message improves clarity.

This change makes the error message more readable and specific.

tests/testthat/test-helper_functions.R Outdated Show resolved Hide resolved
tests/testthat/test-helper_functions.R Outdated Show resolved Hide resolved
add reverse deps check

library_call_linter

length_levels_linter

any_duplicated_linter

unnecessary_concatenation_linter

fixed_regex_linter

styler

comparison_negation_linter

consecutive_assertion_linter

comparison_negation_linter

numeric_leading_zero_linter

sample_int_linter

strings_as_factors_linter

enable most tags

expect_length_linter

expect_length_linter

expect_comparison_linter

expect_comparison_linter

expect_null_linter

expect_comparison_linter

expect_not_linter

fix-tests

expect_named_linter

expect_type_linter

expect_s3_class

fix-tests

120-line-len

rebuild

Update tests/testthat/test-helper_functions.R

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

Update tests/testthat/test-helper_functions.R

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

names

more lint

rebuild

fix a bunch of lint

monster delint

test

test

test

test

test
@zachmayer
Copy link
Owner Author

@coderabbitai review

Copy link
Contributor

coderabbitai bot commented Jul 25, 2024

Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 04a44f5 and 5c2244a.

Files selected for processing (31)
  • .github/workflows/recheck.yml (1 hunks)
  • .lintr (1 hunks)
  • R/S3GenericExtenstions.R (2 hunks)
  • R/caretEnsemble.R (10 hunks)
  • R/caretList.R (12 hunks)
  • R/caretStack.R (5 hunks)
  • R/helper_functions.R (17 hunks)
  • cobertura.xml (4 hunks)
  • inst/data-raw/build_test_data.R (4 hunks)
  • man/caretList.Rd (1 hunks)
  • man/caretModelSpec.Rd (1 hunks)
  • man/caretStack.Rd (2 hunks)
  • man/dotplot.caretStack.Rd (1 hunks)
  • man/extractBestPredsAndObs.Rd (1 hunks)
  • man/extractCaretTarget.Rd (1 hunks)
  • man/extractCaretTarget.default.Rd (1 hunks)
  • man/methodCheck.Rd (1 hunks)
  • man/trControlCheck.Rd (1 hunks)
  • man/tuneCheck.Rd (1 hunks)
  • man/validateExcludedClass.Rd (1 hunks)
  • revdep/README.md (1 hunks)
  • tests/testthat/test-S3-generic-extensions.R (10 hunks)
  • tests/testthat/test-caretEnsemble.R (6 hunks)
  • tests/testthat/test-caretList.R (31 hunks)
  • tests/testthat/test-caretStack.R (13 hunks)
  • tests/testthat/test-classSelection.R (7 hunks)
  • tests/testthat/test-ensembleMethods.R (8 hunks)
  • tests/testthat/test-helper_functions.R (16 hunks)
  • tests/testthat/test-multiclass.R (14 hunks)
  • tests/testthat/test-parallel.R (1 hunks)
  • vignettes/caretEnsemble-intro.Rmd (6 hunks)
Files skipped from review due to trivial changes (15)
  • R/caretList.R
  • R/caretStack.R
  • R/helper_functions.R
  • inst/data-raw/build_test_data.R
  • man/caretList.Rd
  • man/caretModelSpec.Rd
  • man/caretStack.Rd
  • man/extractBestPredsAndObs.Rd
  • man/extractCaretTarget.Rd
  • man/extractCaretTarget.default.Rd
  • man/methodCheck.Rd
  • man/trControlCheck.Rd
  • man/tuneCheck.Rd
  • man/validateExcludedClass.Rd
  • tests/testthat/test-parallel.R
Files skipped from review as they are similar to previous changes (13)
  • .github/workflows/recheck.yml
  • .lintr
  • R/caretEnsemble.R
  • man/dotplot.caretStack.Rd
  • tests/testthat/test-S3-generic-extensions.R
  • tests/testthat/test-caretEnsemble.R
  • tests/testthat/test-caretList.R
  • tests/testthat/test-caretStack.R
  • tests/testthat/test-classSelection.R
  • tests/testthat/test-ensembleMethods.R
  • tests/testthat/test-helper_functions.R
  • tests/testthat/test-multiclass.R
  • vignettes/caretEnsemble-intro.Rmd
Additional context used
LanguageTool
revdep/README.md

[uncategorized] ~19-~19: A punctuation mark might be missing here.
Context: ...|Δ | |:-------------|:-----|:-----|:--| |caretEnsemble |2.0.3 |2.0.4 |* | # Re...

(AI_EN_LECTOR_MISSING_PUNCTUATION)

Additional comments not posted (49)
revdep/README.md (7)

5-5: Update R version.

The R version has been updated to 4.4.1. Ensure that all dependencies and compatibility issues are addressed with this version.


6-6: Update OS version.

The OS has been updated to macOS Sonoma 14.5. Verify that the new OS version is compatible with all dependencies and tools used in the project.


7-7: Update system architecture.

The system architecture has been updated to aarch64. Ensure that all dependencies and tools support this architecture.


8-8: Update UI.

The UI has been changed to X11. Verify that this change does not affect the user experience or functionality.


13-13: Update date.

The date has been updated to 2024-07-24. Ensure that this date reflects the actual update time.


14-14: Update Pandoc version.

The Pandoc version has been updated to 3.2.1. Verify that the new version is compatible with the project requirements.


20-20: Update caretEnsemble version.

The caretEnsemble package version has been updated from 2.0.3 to 2.0.4. Ensure that the new version does not introduce any breaking changes.

R/S3GenericExtenstions.R (4)

38-45: Simplify conditional logic.

The conditional logic has been simplified for better readability. This change improves the maintainability of the code.


42-42: Use explicit list indexing.

The method name is accessed using x[[1L]] instead of x[[1]]. This change is more explicit and improves code clarity.


85-92: Simplify conditional logic.

The conditional logic has been simplified for better readability. This change improves the maintainability of the code.


89-89: Use explicit list indexing.

The method name is accessed using x[[1L]] instead of x[[1]]. This change is more explicit and improves code clarity.

cobertura.xml (38)

3-3: Update coverage metrics.

The line coverage metrics have been updated, indicating improved test coverage. Ensure that the new metrics accurately reflect the test coverage.


445-445: Update line hits for caretModelSpec.

The line hits for the caretModelSpec method have been updated. Verify that the changes accurately reflect the test coverage.


451-461: Update line hits for tuneCheck.

The line hits for the tuneCheck method have been updated. Verify that the changes accurately reflect the test coverage.


466-486: Update line hits for methodCheck.

The line hits for the methodCheck method have been updated. Verify that the changes accurately reflect the test coverage.


492-516: Update line hits for trControlCheck.

The line hits for the trControlCheck method have been updated. Verify that the changes accurately reflect the test coverage.


521-521: Update line hits for extractCaretTarget.

The line hits for the extractCaretTarget method have been updated. Verify that the changes accurately reflect the test coverage.


526-526: Update line hits for extractCaretTarget.default.

The line hits for the extractCaretTarget.default method have been updated. Verify that the changes accurately reflect the test coverage.


531-533: Update line hits for extractCaretTarget.formula.

The line hits for the extractCaretTarget.formula method have been updated. Verify that the changes accurately reflect the test coverage.


538-568: Update line hits for caretList.

The line hits for the caretList method have been updated. Verify that the changes accurately reflect the test coverage.


573-573: Update line hits for is.caretList.

The line hits for the is.caretList method have been updated. Verify that the changes accurately reflect the test coverage.


578-580: Update line hits for as.caretList.

The line hits for the as.caretList method have been updated. Verify that the changes accurately reflect the test coverage.


585-585: Update line hits for as.caretList.default.

The line hits for the as.caretList.default method have been updated. Verify that the changes accurately reflect the test coverage.


590-598: Update line hits for as.caretList.list.

The line hits for the as.caretList.list method have been updated. Verify that the changes accurately reflect the test coverage.


603-604: Update line hits for [.caretList.

The line hits for the [.caretList method have been updated. Verify that the changes accurately reflect the test coverage.


609-631: Update line hits for predict.caretList.

The line hits for the predict.caretList method have been updated. Verify that the changes accurately reflect the test coverage.


778-785: Update line hits for caretStack.

The line hits for the caretStack method have been updated. Verify that the changes accurately reflect the test coverage.


792-831: Update line hits for predict.caretStack.

The line hits for the predict.caretStack method have been updated. Verify that the changes accurately reflect the test coverage.


836-836: Update line hits for is.caretStack.

The line hits for the is.caretStack method have been updated. Verify that the changes accurately reflect the test coverage.


841-841: Update line hits for summary.caretStack.

The line hits for the summary.caretStack method have been updated. Verify that the changes accurately reflect the test coverage.


846-849: Update line hits for print.caretStack.

The line hits for the print.caretStack method have been updated. Verify that the changes accurately reflect the test coverage.


854-854: Update line hits for plot.caretStack.

The line hits for the plot.caretStack method have been updated. Verify that the changes accurately reflect the test coverage.


859-859: Update line hits for dotplot.caretStack.

The line hits for the dotplot.caretStack method have been updated. Verify that the changes accurately reflect the test coverage.


930-955: Update line hits for validateExcludedClass.

The line hits for the validateExcludedClass method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 71-78:
Update line hits for dropExcludedClass.

The line hits for the dropExcludedClass method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 94-99:
Update line hits for extractModelName.

The line hits for the extractModelName method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 109-129:
Update line hits for extractBestPreds.

The line hits for the extractBestPreds method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 141-150:
Update line hits for extractModelType.

The line hits for the extractModelType method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 157-161:
Update line hits for extractObsLevels.

The line hits for the extractObsLevels method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 176-220:
Update line hits for extractBestPredsAndObs.

The line hits for the extractBestPredsAndObs method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 235-241:
Update line hits for checkCustomModel.

The line hits for the checkCustomModel method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 250-254:
Update line hits for check_caretList_classes.

The line hits for the check_caretList_classes method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 262-269:
Update line hits for check_caretList_model_types.

The line hits for the check_caretList_model_types method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 296-302:
Update line hits for check_bestpreds_resamples.

The line hits for the check_bestpreds_resamples method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 310-316:
Update line hits for check_bestpreds_indexes.

The line hits for the check_bestpreds_indexes method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 324-330:
Update line hits for check_bestpreds_obs.

The line hits for the check_bestpreds_obs method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 339-357:
Update line hits for check_bestpreds_preds.

The line hits for the check_bestpreds_preds method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 366-374:
Update line hits for check_binary_classification.

The line hits for the check_binary_classification method have been updated. Verify that the changes accurately reflect the test coverage.


Line range hint 389-397:
Update line hits for wtd.sd.

The line hits for the wtd.sd method have been updated. Verify that the changes accurately reflect the test coverage.

@zachmayer zachmayer merged commit 55a7003 into main Jul 25, 2024
9 checks passed
@zachmayer zachmayer deleted the lint branch July 25, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant