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,
Ok, I just figured out what the error means... :-) I have to create the new directory in advance and now I can copy everything...
dir.create('new_folder') file.copy("my_folder", "new_folder", recursive=TRUE)
This works as expected.