Write lines of text to a file in R September 19, 2022 by Tarik fileConn<-file("output.txt") writeLines(c("Hello","World"), fileConn) close(fileConn)