Sometimes it is useful to create alpha numeric strings. In my case, I wanted to generate something that looked like an API key in a demo. Here’s the code to do that, also with an additional argument to write to clipboard, which I usually want to do, and is made possible with the excellent clipr package by Matthew Lincoln. alpha_num <- function(n, save_clip = TRUE){ alpha_num_pool <- c(letters, LETTERS, rep(0:9, …