assertIsFillScaleDiscreteOrNULL: Assert Is Fill Palette Scale Discrete or NULL

Description Usage Arguments Value Examples

View source: R/assertIsFillScaleDiscreteOrNULL.R

Description

Assert Is Fill Palette Scale Discrete or NULL

Usage

1

Arguments

object

Object.

Value

Always stop on error.

Examples

1
2
3
4
fill <- ggplot2::scale_fill_manual(values = c("red", "blue"))
class(fill)
assertIsFillScaleDiscreteOrNULL(fill)
assertIsFillScaleDiscreteOrNULL(NULL)

steinbaugh/basejump.assertions documentation built on Nov. 5, 2018, 10:37 p.m.