This functions starts libreoffice, if it is in the PATH on POSIX systems (tested only on Linux). On Windows, consider using a shortcut including “-accept=socket,host=localhost,port=8100;urp;”.

Create a new libreoffice writer document

rlo_start(file = NULL, title = NULL, dir = ".", template = NULL,
  open = !is.null(file), overwrite = FALSE, sleep_time = 2)

rlo_new(file, title = NULL, dir = ".", template = NULL,
  overwrite = FALSE, sleep_time = 2)

Arguments

file
The file to create/open
title
The title of the document
dir
The directory to write the file to
template
The template file if to be used
open
Should file be opened if it already exists?
overwrite
Should file be overwritten if it already exists?
sleep_time
The time to sleep after starting LibreOffice before trying to connect