gt_reprex_image: Render 'gt' Table to Temporary png File

View source: R/gt_reprex_image.R

gt_reprex_imageR Documentation

Render 'gt' Table to Temporary png File

Description

Take a gt pipeline or object and print it as an image within a reprex

Usage

gt_reprex_image(gt_object)

Arguments

gt_object

An object of class gt_tbl usually created by gt::gt()

Details

Saves a gt table to a temporary png image file and uses knitr::include_graphics() to render tables in reproducible examples like reprex::reprex() where the HTML is not transferrable to GitHub.

Value

a png image


jthomasmock/gtExtras documentation built on April 6, 2024, 5:28 a.m.