Skip to content

Fix issue #346: Add option to keep resamples by fold, rather than sum…

codefactor.io / CodeFactor failed Dec 14, 2024 in 5s

21 issues found.

Annotations

Check warning on line 26 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L26

Use expect_identical(x, y) by default; resort to expect_equal() only when needed, e.g. when setting ignore_attr= or tolerance=. (expect_identical_linter)

Check notice on line 9 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L9

Use 2L or 2.0 to avoid implicit integers. (implicit_integer_linter)

Check notice on line 45 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L45

Use 1L or 1.0 to avoid implicit integers. (implicit_integer_linter)

Check warning on line 27 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L27

expect_gt(x, y) is better than expect_true(x > y). (expect_comparison_linter)

Check notice on line 35 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L35

Use 2L or 2.0 to avoid implicit integers. (implicit_integer_linter)

Check warning on line 61 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L61

expect_gt(x, y) is better than expect_true(x > y). (expect_comparison_linter)

Check warning on line 22 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L22

Use expect_identical(x, y) by default; resort to expect_equal() only when needed, e.g. when setting ignore_attr= or tolerance=. (expect_identical_linter)

Check notice on line 60 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L60

Use 4L or 4.0 to avoid implicit integers. (implicit_integer_linter)

Check notice on line 34 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L34

Use 2L or 2.0 to avoid implicit integers. (implicit_integer_linter)

Check warning on line 60 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L60

Use expect_identical(x, y) by default; resort to expect_equal() only when needed, e.g. when setting ignore_attr= or tolerance=. (expect_identical_linter)

Check notice on line 23 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L23

Remove trailing whitespace. (trailing_whitespace_linter)

Check notice on line 38 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L38

Remove trailing whitespace. (trailing_whitespace_linter)

Check notice on line 54 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L54

Use 1L or 1.0 to avoid implicit integers. (implicit_integer_linter)

Check notice on line 19 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L19

Remove trailing whitespace. (trailing_whitespace_linter)

Check notice on line 26 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L26

Use 4L or 4.0 to avoid implicit integers. (implicit_integer_linter)

Check notice on line 103 in R/caretPredict.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

R/caretPredict.R#L103

Lines should not be more than 120 characters. This line is 156 characters. (line_length_linter)

Check notice on line 12 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L12

Remove trailing whitespace. (trailing_whitespace_linter)

Check warning on line 59 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L59

Use expect_identical(x, y) by default; resort to expect_equal() only when needed, e.g. when setting ignore_attr= or tolerance=. (expect_identical_linter)

Check notice on line 57 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L57

Remove trailing whitespace. (trailing_whitespace_linter)

Check notice on line 47 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L47

Remove trailing whitespace. (trailing_whitespace_linter)

Check notice on line 8 in tests/testthat/test-aggregate-resamples.R

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

tests/testthat/test-aggregate-resamples.R#L8

Use 2L or 2.0 to avoid implicit integers. (implicit_integer_linter)