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

[R/save] fix writing integers without colNames #266

Merged
merged 1 commit into from
Jul 10, 2022

Conversation

JanMarvin
Copy link
Owner

This allows creating entirely empty canvas as shown in the added test.

  dat <- as.data.frame(matrix(NA, 2, 2))
  wb <- wb_workbook()$
    add_worksheet()$
    add_data(x = dat, startRow = 2, startCol = 2, na.strings = NULL, colNames = FALSE)

  wb$worksheets[[1]]$sheet_data$cc$c_t <- ""

  # created an empty canvas that can be styled
  wb$add_fill(dims = "B2:C3", color = c(rgb = "FFFFFF00"))
  wb$add_border(dims = "B2:C3")

@JanMarvin JanMarvin merged commit 885bde8 into main Jul 10, 2022
@JanMarvin JanMarvin deleted the add_data_na_strings_null branch July 10, 2022 09:32
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.

None yet

1 participant