R/utils.R

Defines functions mksym

Documented in mksym

#' Create a symbol from a combination of characters and symbols
#'
#' @param ... Characters or symbols. Each of these will be passed to [rlang::quo_name()]
#' @return A single symbol (see [rlang::sym()])
#' @author Alexey Shiklomanov
mksym <- function(...) {
  rlang::sym(paste0(purrr::map_chr(list(...), rlang::quo_name), collapse = ""))
}
ashiklom/hector_permafrost_emit documentation built on March 26, 2020, 12:15 a.m.