You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As documented in this SO post flextable 0.9.6 might break with an error on R < 4.1.0. The reason is most likely that in some places apply is called with simplify=FALSE, e.g.
which was introduced in R 4.1.0 (see the New Features section on R 4.1.0 here).
I was able to reproduce the issue using flextable 0.9.6 and the rocker:tidyverse:4.0.3 docker image:
library(flextable)
#> Warning: package 'flextable' was built under R version 4.0.5z<- summarizor(
x=CO2[-c(1, 4)],
by="Treatment",
overall_label="Overall"
)
ft_1<- as_flextable(z, separate_with="variable")
#> Error in FUN(newX[, i], ...): unused argument (simplify = FALSE)ft_1#> Error in eval(expr, envir, enclos): object 'ft_1' not found
The package passes all CMD tests by just removing the only two occurrences of simplify = FALSE in compose.R in the labelisor() function. But whether it is being tested already, I'm not sure.
As documented in this SO post
flextable 0.9.6
might break with an error on R < 4.1.0. The reason is most likely that in some placesapply
is called withsimplify=FALSE
, e.g.flextable/R/compose.R
Line 202 in b03d310
which was introduced in R 4.1.0 (see the New Features section on R 4.1.0 here).
I was able to reproduce the issue using
flextable 0.9.6
and therocker:tidyverse:4.0.3
docker image:Created on 2024-08-27 by the reprex package (v1.0.0)
Session info
The text was updated successfully, but these errors were encountered: