Skip to content

only the 1st variable is evaluated in cli_h1 #218

@fmichonneau

Description

@fmichonneau

Compare the output of cli_h1 and cli_h2.

var1 <- "var 1"
var2 <- "var 2"
cli::cli_h1("{var1} {var2} {nrow(mtcars)}")
#> 
#> ── ── var 1 ────────────────────────────────────────────────────────────────────
cli::cli_h2("{var1} {var2} {nrow(mtcars)}")
#> 
#> ── ── var 1 ── ── var 2 ── ── 32 ── ──
#> 

Created on 2021-02-08 by the reprex package (v1.0.0)

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