I've been looking in SO for a thread about how to create two (or n) subdirectories in a directory at once in R and only found this which it's not quiete what I want.
I can do it in two lines by doing:
dir.create(file.path(getwd(), "test"))
sapply(letters[1:2],
function(x) dir.create(file.path(getwd(), "test", paste0(x, "_test"))))
# a b
#TRUE TRUE
How can I do it in one line?
Thank you.