Skip to content

Allow sheet_append to match existing sheet format (or add append option to range_write) #204

@py9mrg

Description

@py9mrg

When I use sheet_append to add rows to an existing sheet, the new rows are all format free - even if the table in the existing sheet contains formatting. It would be nice to have a reformat = FALSE option for sheet_append similar to range_write.

I think the lack of this option is by design - I assume sheet_append is literally adding new rows to the sheet as opposed to writing over existing rows - hence they contain no formatting. But, often I am writing to an existing file with formatting and it would be nice if I could use sheet_append without having the blank formatting (or add an append option to range_write, if that's easier). Currently I just use range_write with the reformat = FALSE option but then I need to do a bit of extra faff to get the starting row from the existing file by reading it in and then using nrow - but the file is often very big and takes ages to read in to do that. If it's not too much hassle to fudge a background solution to one of those functions, it would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    formats 💅reprexneeds a minimal reproducible example

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions