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
You can try the filesstrings library. This option will move the file into a directory. Example code:
First, we create a sample directory and file:
dir.create("My_directory")
file.create("My_file.txt")
Second, we can move My_file.txt into the created directory My_directory:
file.move("My_file.txt", "My_directory")