By default, this function takes the file name and substitutes .pdf for .odt. Alternatively, an output file name can be given

rlo_pdf(file = NULL, dir = ".", overwrite = FALSE)

Arguments

file
The file to create/open
dir
The directory to write the file to
overwrite
Should file be overwritten if it already exists?