Reported in awalker89/openxlsx/issues/538 by @yb2125
Class checking for comment is too strict/not correct.
library(openxlsx)
createComment("hi", width = 2)
createComment("hi", width = 2L)
#> Error in createComment("hi", width = 2L): width argument must be a numeric vector
Created on 2021-10-17 by the reprex package (v2.0.1)