Each (named) element of my list is a character string. How can I write those strings at ones with purrr?
For a single element I use this code:
cat(list[[1]], file = paste0(names(list)[1], ".txt"))
or
cat(list[[1]], file = names(list)[1]))
if I name the list directly with the extension.
I expect to write all files at once.