Copy folder recursive in R

后端 未结 6 848
谎友^
谎友^ 2021-02-13 17:27

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,

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-13 18:35

    I think R.utils::copyDirectory(oldDir, newDir) is the solution to what you're asking. It doesn't require creating newDir first, either.

提交回复
热议问题