R/show_var.R

#' Show the name and the value of a variable
#' 
#' Can be used for debugging purposes
#'
#' @param x variable to be shown
#'
#' @return no return value
#' @export
#'
#' @examples
#' x <- 10
#' show_var(x)


show_var <- function (x) {cat(substitute(x), '=', paste(x, collapse = ' '), '\n')}
sebastian-gerdes/smisc documentation built on Oct. 24, 2024, 1:31 a.m.