check that newly created variable names don't overlapSource:
check_name is to be used in the bake function to ensure that
newly created variable names don't overlap with existing names.
Throws an error if check fails.
A data frame or tibble of the newly created variables.
A data frame or tibble passed to the bake function.
A trained object passed to the bake function.
A string of variable names if prefix isn't specified in the trained object.
A logical determining if the names should be set using the names function (TRUE) or colnames function (FALSE).
The execution environment of a currently running function, e.g.
caller_env(). The function will be mentioned in error messages as the source of the error. See the call argument of
rlang::abort()for more information.