-
Notifications
You must be signed in to change notification settings - Fork 13
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
wb_set_row_heights: replacement has N rows, data has N-1 at row 100000 #1167
Comments
Arthfael
changed the title
wb_set_row_heights: replacement has N rows, data has N-1 around row 100000
wb_set_row_heights: replacement has N rows, data has N-1 at row 100000
Oct 29, 2024
Hi @Arthfael, thanks for the report. It’s a bit simpler, but nevertheless a bug. as.character(100000)
#> "1e+05" In our row table we search for |
Ahhh of course! Anyway, I modified the calls in my code to the way which
works in my example, so from my side the fix is not urgent ^^
…On Tue, Oct 29, 2024 at 3:58 PM Jan Marvin Garbuszus < ***@***.***> wrote:
Hi @Arthfael <https://github.com/Arthfael>, thanks for the report. It’s a
bit simpler, but nevertheless a bug.
as.character(100000)#> "1e+05"
In our row table we search for "100000".
—
Reply to this email directly, view it on GitHub
<#1167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSHV4JYTUQT6TUAOZVRFXLZ56PBNAVCNFSM6AAAAABQZXISMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBUGUYTKMJUHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
JanMarvin
added a commit
that referenced
this issue
Oct 29, 2024
I've added a PR in #1170. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am writing large Excels with this package. As discussed with you here some time ago ( https://github.com/JanMarvin/openxlsx2/discussions ), I tested a parallel approach to building the table. I rewriting my old code, I encountered a weird error: I tried to set row_heights and the following call:
> WB <- openxlsx2::wb_set_row_heights(WB, SheetName, rws, 15) # rws = indices of the targe rows
failed for only one of my 55 parallel chunks, with an error of the type
replacement has N rows, data has N-1 at row 100000
Downstream investigations revealed that this happened specifically when row 100000 was included in rws. More puzzling, functionally equivalent but syntactically different ways to pass rws make the difference between success and failure.
Below is a reprex:
Now, I just recently found out about ALTREPs, and whilst this is something I am absolutely not familiar with, this feels like it could be the cause. The 100000 feels like a boundary where R might change the underlying data representation, resulting in breaking the code here.
The text was updated successfully, but these errors were encountered: