Skip to content

Commit d2a51bc

Browse files
committed
don't use syntax from R > 4.0 to maintain compatibility with older R
1 parent 79114fb commit d2a51bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-default-methods.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ lw <- matrix(rnorm(150), 50, 3)
66
lw <- sweep(
77
lw,
88
MARGIN = 2,
9-
STATS = apply(lw, 2, \(col) log(sum(exp(col)))),
9+
STATS = apply(lw, 2, function(col) log(sum(exp(col)))),
1010
check.margin = FALSE
1111
)
1212

0 commit comments

Comments
 (0)