test_image: Generate a path to a test image

View source: R/image.R

test_imageR Documentation

Generate a path to a test image

Description

Two test images are available within the gt package. Both contain the same imagery (sized at 200px by 200px) but one is a PNG file while the other is an SVG file. This function is most useful when paired with local_image() since we test various sizes of the test image within that function.

Usage

test_image(type = c("png", "svg"))

Arguments

type

The image type

⁠singl-kw:[png|svg]⁠ // default: "png"

The type of image to produce here can either be "png" (the default) or "svg".

Value

A character vector with a single path to an image file.

Function ID

9-4

Function Introduced

v0.2.0.5 (March 31, 2020)

See Also

Other image addition functions: ggplot_image(), local_image(), web_image()


rstudio/gt documentation built on Dec. 2, 2024, 11:05 a.m.