R/key.R

Defines functions key

Documented in key

#' Create a random key
#'
#' Create a random sequence of alphanumeric characters.
#'
#' @param length Length of key
#' @export
#' @examples
#' key()
#' key(length = 10)

#**********************************************************
key <- function(length = 5) {

  stringi::stri_rand_strings(n = 1,
                             length = length)

}
#**********************************************************
wepelham3/sack2 documentation built on Aug. 5, 2023, 5:53 a.m.