I have the results file saved in .txt format. I wish to open that text file in Word document directly from the R console. If I copy paste the following command (winword "C:\Users\results.txt") in windows command prompt I was able to open the text file in the word document. However, I want to open this directly from the R console.
x = paste0('"','C:\\Users\\results.txt', '"')
system(x)
shell.exec(x)
shell(x)
Open the text using Word directly from R console.