pcctc / affirm

Data affirmation and validation
https://pcctc.github.io/affirm/
Other
6 stars 3 forks source link

`affirm_report_gt()` in .qmd Listing Download shows CSV twice #36

Open shannonpileggi opened 11 months ago

shannonpileggi commented 11 months ago

using affirm dev version 0.2.0.9001 from main

library(affirm)
affirm_init(replace = TRUE)
mtcars |>
  affirm_true(
    label = "MPG should be less than 33",
    condition = mpg < 33,
    id = 2,
    data_frames = "mtcars"
  ) |> 
  invisible()

affirm_report_gt()

when this code is run interactively, this results in the Viewer

image

however, when in an rendered .qmd, this results in the .html

image