Use the first or f
argument based on the sources. E.g.:
myReport <- Pandoc$new(author="Jerubaal",title="What's my file name?", format="docx")
myReport$add.paragraph("This is it.")
myReport$export('this_is_the_file_name.docx', open = FALSE)
Please feel free to send a pull request or suggestion for an updated documentation.