Skip to content

createComment(width) fails with integers #275

@jmbarbone

Description

@jmbarbone

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions