wviechtb/metafor

Test assumes R version >= 4.0.0

Closed this issue · 2 comments

sav <- structure(list(study = c("1", "1", "1", "1", "1", "1"), var1 = c("acog", "asom", "conf", "acog", "acog", "asom"), var2 = c("perf", "perf", "perf", "asom", "conf", "conf"), var1.var2 = c("acog.perf", "asom.perf", "conf.perf", "acog.asom", "acog.conf", "asom.conf"), yi = c(-0.55, -0.48, 0.66, 0.47, -0.38, -0.46), ni = c(142L, 142L, 142L, 142L, 142L, 142L)), row.names = c(NA, 6L), class = "data.frame")
expect_equivalent(dat[1:6,], sav, tolerance=.tol[["coef"]])

This test fails on R<4.0.0:

Component "study": 'current' is not a factor

Reporting here for you to decide the right fix as there are several options.

This is in essence already fixed since the package requires R >= 4.0.0 already in the devel version (https://github.com/wviechtb/metafor/blob/master/DESCRIPTION).

that works thanks!