Hi there, thank for this greate package!
The new separate_header() function is very practical. Unfortunately, it affects the operation of the set_header_label() function.
For layout reasons, I would like to remove the heading of a column. However, this is no longer possible after the separate_header() function:
ft <- flextable(head(iris))
ft <- separate_header(ft, split = '.', fix = TRUE)
ft <- set_header_labels(ft, Species = "")
The label "Species" remains.
If I modify the label first, it works so far:
ft <- flextable(head(iris))
ft <- set_header_labels(ft, Species = "")
The labels "Species" is gone. But after separating header the label "Species" is set again:
ft <- separate_header(ft, split = '.', fix = TRUE)
I can modify header labels that have been separated:
ft <- flextable(head(iris))
ft <- separate_header(ft, split = '.', fix = TRUE)
ft <- set_header_labels(ft, Sepal.Length = "Longeur")
But not the ones that don't have been separated (like "Species" in this example.
I guess set_header_label() should set header labels regardless of whether they have been split or not.
Hi there, thank for this greate package!
The new separate_header() function is very practical. Unfortunately, it affects the operation of the set_header_label() function.
For layout reasons, I would like to remove the heading of a column. However, this is no longer possible after the separate_header() function:
The label "Species" remains.
If I modify the label first, it works so far:
The labels "Species" is gone. But after separating header the label "Species" is set again:
I can modify header labels that have been separated:
But not the ones that don't have been separated (like "Species" in this example.
I guess set_header_label() should set header labels regardless of whether they have been split or not.