Skip to content

col_ functions expand inputs of length 0 #532

@hadley

Description

@hadley
testthat::local_reproducible_output(crayon = TRUE)

length(cli::col_cyan(character()))
#> [1] 1
length(cli::col_cyan("a"))
#> [1] 1
length(cli::col_cyan(c("a", "a")))
#> [1] 2

Created on 2022-10-03 with reprex v2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions