Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrupted file if & in sheet name #508

Closed
elfunesto opened this issue Oct 29, 2024 · 3 comments
Closed

corrupted file if & in sheet name #508

elfunesto opened this issue Oct 29, 2024 · 3 comments

Comments

@elfunesto
Copy link

Describe the bug
The bug is similar to closed #277 : a file with a sheet including "&" is corrupted

To Reproduce

library(openxlsx)
file=loadWorkbook("test.xlsx)
saveWorkook(file,"test_new.xlsx)

The file test_new.xlsx is corrupted

Expected behavior
The file should not be corrupted and be exactly the same as "test.xlsx". If the sheet "Components & input parameter" is removed from test.xlsx, then

library(openxlsx)
file=loadWorkbook("test.xlsx)
saveWorkook(file,"test_new.xlsx)

works as expected

Example files
test.xlsx

Additional context

> packageVersion("openxlsx")
[1] ‘4.2.7.1’
@JanMarvin
Copy link
Collaborator

Hi @elfunesto , I would accept a pull request, but there’s no development from my side regarding this.

@elfunesto
Copy link
Author

Hi @JanMarvin , I have just discovered openxlsx2 which is not affected by the bug. Easier (and probably wiser) to migrate to this new package

@JanMarvin
Copy link
Collaborator

If this works for you, perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants