Skip to content

fillMergedCells = TRUE doesn't work #533

@telenskyt

Description

@telenskyt

Describe the bug
fillMergedCells = TRUE doesn't actually work.

To Reproduce

library(openxlsx)

sek_f <- "d:/tomas/bug_openxlsx.xlsx" 

w1 <- loadWorkbook(sek_f)
names(w1)
sek_hdr <- readWorkbook(w1, sheet = 1, colNames = FALSE, rows = 1:2, fillMergedCells = TRUE)
sek_hdr

Expected behavior

      X1   X2     X3   X4
1 group1 group1 group2 group2
2   col1 col2   col3 col4

Actual behavior

      X1   X2     X3   X4
1 group1 <NA> group2 <NA>
2   col1 col2   col3 col4

Screenshots
If applicable, add screenshots to help explain your problem.

Example files

bug_openxlsx.xlsx

Additional context
I have seen issues here that report the same problem - #6, #318 , they don't seem really resolved, have tag "Stale", why is it still not in open issues when it is not truly resolved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions