You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating comments using createComment and set height, I used the following code:
writeComment(wb, "sheet1", col = 1, row = 1,
comment = createComment(comment = "test", width = num.com, height = num.hgt)
Actual Behavior
I received the error message "height argument must be a numeric vector"
Steps to Reproduce the Problem
(please attach an example xlsx file if possible)
I tried to replace num.hgt with a specific number (e.g., 5) and it worked
I tried to convert num.hgt from integer to numeric with following code and it worked
writeComment(wb, "sheet1", col = 1, row = 1,
comment = createComment(comment = "test", width = num.com, height = as.numeric(num.hgt))
sessionInfo()
Version of openxlsx: 4.2.4
Version of R: 4.0.3
The text was updated successfully, but these errors were encountered:
Expected Behavior
When creating comments using createComment and set height, I used the following code:
writeComment(wb, "sheet1", col = 1, row = 1,
comment = createComment(comment = "test", width = num.com, height = num.hgt)
Actual Behavior
I received the error message "height argument must be a numeric vector"
Steps to Reproduce the Problem
(please attach an example xlsx file if possible)
I tried to replace num.hgt with a specific number (e.g., 5) and it worked
I tried to convert num.hgt from integer to numeric with following code and it worked
writeComment(wb, "sheet1", col = 1, row = 1,
comment = createComment(comment = "test", width = num.com, height = as.numeric(num.hgt))
sessionInfo()
The text was updated successfully, but these errors were encountered: