When I try to copy files in R, the dir names with space come across to me. For example, I have a string variable filname with its value c:/Datalogger Folder/Bdev.txt and I want to copy this file to A.txt. I know that I should pass filname into system function:
system(paste("cp",filname,"A.txt",sep=" "))
While for the reason that there is a space in c:/Datalogger Folder/Bdev.txt, the R complained that "c:/Datalogger no such file or directory". Please guide me how to resolve this problem. Thanks for any advise.
\forcpto understand it:c:/Datalogger\ Folder/Bdev.txt\into this variable.Datalogger. I think having spaces in folders or filenames is not good practice and will only produce trouble