Skip to contents

Check the validity of a specified 'phase' string

Usage

ensure_valid_phase(phase, null_ok = NULL)

Arguments

phase

A character string specifying the phase. Valid options are: raw, processed and output

null_ok

Whether it is valid for phase to be NULL.

Value

NULL (invisibly)

Examples

ensure_valid_phase("output")
if (FALSE) { # \dontrun{
ensure_valid_phase("nonexistent") # => Causes an error
} # }