## Look at all "ansi256" styles (assumes compatible terminal)
PaletteOfStyles()["ansi256",,]
## Generate the default style object palette, and replace
## the ansi256 / light / rgb style with our modified one
## which for illustrative purposes is the raw style
my.pal <- PaletteOfStyles()
my.style <- StyleRaw() # See `?Style` for custom styles
my.style@funs@word.delete <- crayon::bgBlue
my.pal["ansi256", "light", "rgb"] <- list(my.style) # note `list()`
## Output has no format now for format/color.mode/brightness
## we modified ...
diffPrint(
1:3, 2:5, format="ansi256", color.mode="rgb", brightness="light",
palette.of.styles=my.pal
)
## If so desired, set our new style palette as the default
## one; could also pass directly as argument to `diff*` funs
## Not run:
# options(diffobj.palette=defs)
# ## End(Not run)
Run the code above in your browser using DataLab