Moving files between folders

后端 未结 5 479
故里飘歌
故里飘歌 2020-12-02 18:30

I want to copy/paste a file from one folder to another folder in windows using R, but it\'s not working. My code:

> file.rename(from=\"C:/Users/msc2/Desk         


        
5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 18:53

    Please just be aware that file.rename will actually delete the file from the "from" folder. If you want to just make a duplicate copy and leave the original in its place, use file.copy instead.

提交回复
热议问题