Am I missing something in the functions? I want to copy a folder with some files and another subfolder from one location to another. I tried to use file.copy(from, to,
file.copy(from, to,
I think R.utils::copyDirectory(oldDir, newDir) is the solution to what you're asking. It doesn't require creating newDir first, either.
R.utils::copyDirectory(oldDir, newDir)
newDir