Renders a capsule_report() as Markdown,
so the assessment can travel with the capsule instead of living in a
console someone has since closed.
Examples
set.seed(1)
df <- data.frame(v = stats::rnorm(100), g = rep("x", 100),
stringsAsFactors = FALSE)
r <- capsule_report(df)
md <- report_markdown(r)
cat(head(md, 8), sep = "\n")
#> # Capsule report
#>
#> Notes only -- worth a look, nothing blocking.
#>
#> | | |
#> |---|---|
#> | rows | 100 |
#> | columns | 2 |
# Written beside the capsule it describes.
p <- tempfile(fileext = ".md")
report_markdown(r, p)
file.exists(p)
#> [1] TRUE
unlink(p)