Defines functions is_id

#' Determine if the object is a valid ID
#' @param x an object, to be determined if it is a valid ID
#' @return TRUE if x is a valid ID, FALSE otherwise
#' @author Richèl J.C. Bilderbeek
#' @seealso to check multiple IDs, use \code{\link{are_ids}}
#' @noRd
is_id <- function(
) {
  is.character(x) || is.numeric(x)
ropensci/beautier documentation built on March 12, 2019, 8:27 p.m.