Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Write to a textfile

  • file
  • cat
filename = "sample.txt"
print(filename)

fh <- file(filename, "w")
cat("TITLE line", "First row", "", "Third row", sep = "\n", file = fh)
cat("One more line\n", file = fh)
close(fh)