Skip to content

"..." not transferring to writeData(Table) #151

@r2evans

Description

@r2evans

Stemming from https://stackoverflow.com/q/66785955/3358272, it appears that (at least) withFilter= and colWidths= are not being passed through write.xlsx to writeData or writeDataTable:

write.xlsx(mtcars, "mt.xlsx", asTable=TRUE, row.names=FALSE,
           firstActiveRow=2, colWidths="auto", withFilter=FALSE)
write.xlsx(mtcars, "mt.xlsx", asTable=TRUE, row.names=FALSE, 
           firstActiveRow=2, colWidths="auto", withFilter=TRUE)

both produce the same table:

excel table, with filters, no auto width

But doing it manually works:

wb <- createWorkbook()
addWorksheet(wb, "mtcars")
writeDataTable(wb, "mtcars", mtcars, withFilter=FALSE)
saveWorkbook(wb, "mt.xlsx")

excel table, filters disabled, auto width

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions