Pretty much what it says on the box. But check the but about encoding.
save_to_yaml( x, file, preventOverwriting = psyverse::opts$get("preventOverwriting"), encoding = psyverse::opts$get("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.