最近从R版本3.6.0升级到R版本3.6.1之后,我编写的一些可伸缩代码开始导致R崩溃。我从弹性表中找到了一些代码,这些代码也导致会话崩溃。
library(flextable)
typology <- data.frame(
col_keys = c(
"Sepal.Length",
"Sepal.Width",
"Petal.Length",
"Petal.Width",
"Species"
),
type = c("double", "double", "double", "double", "factor"),
what = c("Sepal", "Sepal", "Petal", "Petal", "Species"),
measure = c("Length", "Width", "Length", "Width", "Species"),
stringsAsFactors = FALSE
)
ft <- flextable( head( iris ) )
ft <- set_header_df( ft, mapping = typology, key = "col_keys" )
诸如add_header_row之类的某些功能仍在起作用,但set_header_df则不起作用。
不胜感激,帮助您再次使用此功能。