Skip to contents

Remove a palette file by name, trying across types if necessary.

Usage

remove_palette(
  name,
  type = NULL,
  color_dir = "inst/extdata/palettes",
  log = TRUE
)

Arguments

name

Character. Palette name (without '.json' suffix).

type

Character. Optional. Preferred type ("sequential", "diverging", or "qualitative").

color_dir

Root folder where palettes are stored (default: "inst/extdata/palettes").

log

Logical. Whether to log palette removal to a temporary log file.

Value

Invisibly TRUE if removed successfully, FALSE otherwise.

Examples

# Basic usage (commented to avoid file operations):
# remove_palette("blues")
# remove_palette("vividset", type = "qualitative")