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 are missing a "t" letter in the second extension. Try this:
file.rename(from="C:/Users/msc2/Desktop/rabata.txt",to="C:/Users/msc2/Desktop/Halwa/BADMASHI/SCOP/rabata.txt").
Additionally, it could be worth it to try the file.copy() function. It is specifically designed to copy files instead of renaming.