I am trying to create some soft links with R and I am having a hard time with the single and double quotes.
Currently, I am doing this: system(paste("mklink /d '", paste0(softlink,"/input_data"),"' '", Inputfolder, "'", sep=""))
Where:
softlink = "D:/users/target" and Inputfolder = "D:/users/input_data/"
However, when I am running it, it gives an error: "Running command 'mklink... had status 127'. Thus, I would like to get the following line, as I think this way it would work.
"mklink /d "D:/users/target/input_data" "D:/users/input_data/""
Unfortunately, whatever I have tried so far could not handle these quotes inside quotes. Could someone please help me to obtain the wanted line?
Thank you in advance.