Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

test_image

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 type of the image, which can either be png (the default) or svg.

Value

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

Function ID

8-4

See Also

Other Image Addition Functions: ggplot_image(), local_image(), web_image()


gt

Easily Create Presentation-Ready Display Tables

v0.2.2
MIT + file LICENSE
Authors
Richard Iannone [aut, cre] (<https://orcid.org/0000-0003-3925-190X>), Joe Cheng [aut], Barret Schloerke [aut] (<https://orcid.org/0000-0001-9986-114X>), RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.