Skip to contents

Creates and returns an interactive html tile of the packages either listed in the packages argument, or all the packages attached to the search path. When rendered interactively, the result is output in the viewer. When rendered in Quarto or RMarkdown, the tile becomes part of the rendered html. revealjs presentations are currently not supported. If local images are provided, only these images will be used, excluding loaded packages.

Usage

make_tile(
  packages = NULL,
  local_images = NULL,
  local_urls = NULL,
  dark_mode = FALSE,
  color_arrange = FALSE
)

Arguments

packages

Character vector of package names to include (default: NULL, which uses loaded packages)

local_images

Optional character vector of local image paths to add to the tile

local_urls

Optional character vector of URLs for each of the local images passed

dark_mode

Draw the tile on a dark background?

color_arrange

Logical, whether to arrange the images by color along the 'Lab' color space (defaults to FALSE)

Value

Path to the output file

Details

If an installed package does not have a bundled logo, or if the logo has been added to .Rbuildignore, a generic logo with the name of the package will be created instead. When the function cannot locate a package logo unambiously, users will be prompted to select one.