-
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
Inconsistent wb_dims
return when row vector contains 1
#1093
Labels
bug 🐛
Something isn't working
Comments
Thanks, indeed. I probably my latest patches were not good enough :( packageVersion("openxlsx2")
wb_dims(rows = c(2,30), cols = 2) # expect B2,B30
wb_dims(rows = c(1,30), cols = 2) # expect B1,B30
wb_dims(rows = c(2,30), cols = c(2,4)) # expect B2,B30,D2,D30
wb_dims(rows = c(1,30), cols = c(2,4)) # expect B1,B30,D1,D30
wb_dims(rows = c(2,1), cols = c(2,4)) # expect B2,B1,D2,D1 (or sorted B1:B2,D1:D2)
wb_dims(rows = c(5,1), cols = c(2,4)) # expect B5,B1,D5,D1 (or sorted B1,B5,D1,D5) |
I've opened a PR in #1094, which should fix the issue. We still return ranges for single cells wb_dims(rows = c(5, 1:3), cols = c(1:3, 5)) %>%
dims_to_dataframe(fill = TRUE) %>%
dataframe_to_dims(dim_break = TRUE) This could reduce to: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wb_dims
gives weird dimension range when therows
argument is a vector and the vector contains 1.The text was updated successfully, but these errors were encountered: