Skip to content

Suggest an exact alternative in literal_coercion_linter #1441

Closed
@MichaelChirico

Description

@MichaelChirico

is it always possible to suggest an exact alternative? I think it should be. so

as.integer(1) -> suggest 1L
as.numeric(NA) -> suggest NA_real_

etc. looking again I think it's definitely a big enough undertaking to warrant its own PR

Originally posted by @MichaelChirico in #1437 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions