Check user-supplied layers against list of valid layers

check_user_layers(user, valid, message = FALSE)

Arguments

user

character; vector of user supplied layer names.

valid

character; vector of valid layer names.

message

logical; should a message be raised in the case of invalid user-supplied layer names.