Skip to content

Commit

Permalink
don't use syntax from R > 4.0 to maintain compatibility with older R
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabry committed Feb 22, 2024
1 parent 79114fb commit d2a51bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-default-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lw <- matrix(rnorm(150), 50, 3)
lw <- sweep(
lw,
MARGIN = 2,
STATS = apply(lw, 2, \(col) log(sum(exp(col)))),
STATS = apply(lw, 2, function(col) log(sum(exp(col)))),
check.margin = FALSE
)

Expand Down

0 comments on commit d2a51bc

Please sign in to comment.