Hi,
In R programming Language, How I write lines to a text file?
I would use the cat() command as in this example:
> cat("Hello",file="outfile.txt",sep="\n")
> cat("World",file="outfile.txt",append=TRUE)
You can then view the results from with R with
> file.show("outfile.txt")
hello
world. Try This It will Help You. Thank You