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.
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())
} # }