Skip to contents

Verifies that the provided object is a valid dockerignore class object, throwing an error if not. Useful for validation inside functions that expect dockerignore objects.

Usage

check_dockerignore(dockerignore)

Arguments

dockerignore

Object to check

Value

Invisibly returns TRUE if valid, otherwise throws an error

See also

is_dockerignore() for checking if an object is a dockerignore & dockerignore() for creating a dockerignore object

Other dockerignore core functions: c.dockerignore(), dockerignore(), is_dockerignore(), print.dockerignore()

Examples

di <- dockerignore()
check_dockerignore(di)  # Valid, returns TRUE invisibly

if (FALSE) { # \dontrun{
# This would throw an error
check_dockerignore(list())
} # }