-
Notifications
You must be signed in to change notification settings - Fork 11
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
create chartsheets. closes 464 #466
Conversation
f515cfb
to
8dd6337
Compare
@jmbarbone could you have a look why, in the example above, the sheet has to be selected? If I write this |
13e995c
to
422ed9c
Compare
@JanMarvin The current sheet is reset in library(openxlsx2)
wb <- wb_workbook()
wb$.__enclos_env__$private$current_sheet
#> [1] 0
wb$add_worksheet()
wb$.__enclos_env__$private$current_sheet
#> [1] 1
wb$add_data(x = mtcars)
wb$.__enclos_env__$private$current_sheet
#> [1] 1
wb$add_chartsheet()
wb$.__enclos_env__$private$current_sheet
#> [1] 2
# create wb_data object
dat <- wb_data(wb, 1, dims = "A1:E6")
wb$.__enclos_env__$private$current_sheet
#> [1] 1 Created on 2022-12-13 with reprex v2.0.2 Might also be worth it to have a |
Ah thanks, I completely missed that. |
0dfd270
to
a7fd009
Compare
The above code works now. Fixed |
39517f0
to
74d4554
Compare
* remove duplicated code * allow absolute anchor, one cell anchor or two cell anchor
74d4554
to
67f8e92
Compare
* [ ] warning if no chart found on Chartsheet. sometime in the future we can provide a default Chartsheet and update the Chartsheet if a chart is assigned to an already existing Chartsheet