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

[fmt_txt] add class and methods #636

Merged
merged 5 commits into from
Jun 3, 2023
Merged

[fmt_txt] add class and methods #636

merged 5 commits into from
Jun 3, 2023

Conversation

JanMarvin
Copy link
Owner

To allow something like this:

library(openxlsx2)

wb <- wb_workbook()$add_worksheet()

txt <- fmt_txt("This Part Bold\n\n ", bold = TRUE) +
  fmt_txt("This part red and underlined!", underline = TRUE, color = wb_color("red"))

c1 <- create_comment(text = txt, author = "")

write_comment(wb, 1, col = "B", row = 10, comment = c1)


wb$add_data(x = txt, colNames = FALSE)
wb$add_cell_style(wrapText = "1")

wb$open()

@JanMarvin JanMarvin merged commit f638931 into main Jun 3, 2023
@JanMarvin JanMarvin deleted the fmt_txt_2 branch June 3, 2023 15:49
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

Successfully merging this pull request may close these issues.

1 participant