Pretty much what it says on the box. But check the bit about encoding.
The object to save.
The file to save to.
Whether to prevent overwriting.
The encoding to use. Note that in general, encoding seems to have been invented primarily as a source of frustration, and it rarely disappoints. If unsure, use UTF-8. If using UTF-8, the approach from https://kevinushey.github.io/blog/2018/02/21/string-encoding-and-r/ will be used.
The character vector that was written to the file.