estimate_contrasts() Fails to Accept Explicit Levels for Numeric Predictor with Marginaleffects Backend #1227
Annotations
1 error and 10 warnings
Extract and lint files changed by this PR
Process completed with exit code 31.
|
Extract and lint files changed by this PR:
R/get_marginalcontrasts.R#L220
file=R/get_marginalcontrasts.R,line=220,col=7,[if_not_else_linter] Prefer `if (A) x else y` to the less-readable `if (!A) y else x` in a simple if/else statement.
|
Extract and lint files changed by this PR:
R/get_marginalcontrasts.R#L222
file=R/get_marginalcontrasts.R,line=222,col=9,[if_not_else_linter] Prefer `if (A) x else y` to the less-readable `if (!A) y else x` in a simple if/else statement.
|
Extract and lint files changed by this PR:
R/get_marginalcontrasts.R#L340
file=R/get_marginalcontrasts.R,line=340,col=22,[seq_linter] Use seq_len(nrow(...)) instead of 1:nrow(...), which is likely to be wrong in the empty edge case.
|
Extract and lint files changed by this PR:
tests/testthat/test-estimate_contrasts-average.R#L11
file=tests/testthat/test-estimate_contrasts-average.R,line=11,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 122 characters.
|
Extract and lint files changed by this PR:
tests/testthat/test-estimate_contrasts-average.R#L43
file=tests/testthat/test-estimate_contrasts-average.R,line=43,col=5,[unnecessary_concatenation_linter] Remove unnecessary c() of a constant.
|
Extract and lint files changed by this PR:
tests/testthat/test-estimate_contrasts-average.R#L69
file=tests/testthat/test-estimate_contrasts-average.R,line=69,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 132 characters.
|
Extract and lint files changed by this PR:
tests/testthat/test-estimate_contrasts.R#L32
file=tests/testthat/test-estimate_contrasts.R,line=32,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 134 characters.
|
Extract and lint files changed by this PR:
tests/testthat/test-estimate_contrasts.R#L53
file=tests/testthat/test-estimate_contrasts.R,line=53,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 121 characters.
|
Extract and lint files changed by this PR:
tests/testthat/test-estimate_contrasts.R#L113
file=tests/testthat/test-estimate_contrasts.R,line=113,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 126 characters.
|
Extract and lint files changed by this PR:
tests/testthat/test-estimate_contrasts.R#L117
file=tests/testthat/test-estimate_contrasts.R,line=117,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 122 characters.
|
Loading