r convert string to list of characters

# Create a string
my_string <- "Hello, world!"

# Convert the string to a list of characters
char_list <- strsplit(my_string, split = "")[[1]]