remove_palette: Remove a Saved Palette JSON

View source: R/remove_palette.R

remove_paletteR Documentation

Remove a Saved Palette JSON

Description

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

Usage

remove_palette(name, type = NULL, color_dir, log = TRUE)

Arguments

name

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

type

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

color_dir

Character. Root folder where palettes are stored (required). Use tempdir() for examples/tests.

log

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

Value

Invisibly TRUE if removed successfully, FALSE otherwise.

Examples

## Not run: 
# Remove a palette (requires write permissions):
remove_palette("seq_blues")

# Remove with specific type:
remove_palette("qual_vivid", type = "qualitative")

## End(Not run)

evanverse documentation built on March 10, 2026, 5:07 p.m.