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

Special tags of set_header_footer() give me a corrupt file #747

Closed
olivroy opened this issue Aug 21, 2023 · 2 comments
Closed

Special tags of set_header_footer() give me a corrupt file #747

olivroy opened this issue Aug 21, 2023 · 2 comments

Comments

@olivroy
Copy link
Collaborator

olivroy commented Aug 21, 2023

Fixed in #748, #751

Running the examples of wb_set_header_footer() give me a corrupt file when using the special tags.

I am running Microsoft Excel 365 on Windows 10, with R 4.2.3 in a French locale..

wb <- wb_workbook()

# Add example data
wb$add_worksheet("S1")$add_data(x = 1:400)
wb$set_header_footer(
sheet = 1,
header = c("&[Date]", "ALL HEAD CENTER 2", "&[Page] / &[Pages]"),
footer = c("&[Path]&[File]", NA, "&[Tab]"),
first_header = c(NA, "Center Header of First Page", NA),
first_footer = c(NA, "Center Footer of First Page", NA)
)
wb$open()

If you can't reproduce, I will provide more details!

It's written Illegal character name

Edit: I encounter the same wb$add_worksheet() and wb$set_header_footer()

JanMarvin added a commit that referenced this issue Aug 21, 2023
@JanMarvin
Copy link
Owner

Thanks for the report! A fix is in #748

@olivroy
Copy link
Collaborator Author

olivroy commented Aug 21, 2023

Awesome thanks!

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