In the R scripting language, how do I write lines of text, e.g. the following two lines
Hello World
to a file named "output.txt"?
fileConn<-file("output.txt") writeLines(c("Hello","World"), fileConn) close(fileConn)
2.1m questions
2.1m answers
60 comments
57.0k users