Downloads OfficeToPDF.exe
from
https://github.com/cognidox/OfficeToPDF/releases and copies it to
a suitable location, by default system.file(package = "accessr")
.
Arguments
- dir
Directory into which to download the executable file
OfficeToPDF.exe
. This argument must be supplied. Passdir = "accessr"
to choose theaccessr
package directory, that is,system.file(package = "accessr")
. This choice should enableOfficeToPDF.exe
to be found but there may be a problem if.libPaths
refers to a cloud storage directory, such as OneDrive.If
dir
is not supplied, e.g. the call isinstall_otp()
, then an error is thrown anddir = "accessr"
is suggested.- url
URL from which to download
OfficeToPDF.exe
. If this is missing then https://github.com/cognidox/OfficeToPDF/releases/download/v1.9.0.2/OfficeToPDF.exe is used.- method
Passed to
download.file
. If missing thengetOption("download.file.method")
is used to set it.- quiet
Passed to
download.file
.quiet
controls whether messages are printed during the download.- ...
Additional arguments passed to
download.file
.
Value
See the Value section of download.file
.
Details
The argument mode = "wb"
to
download.file
is hard-coded, so that binary transfer
is forced.
Note
OfficeToPDF.exe
is used to create PDF files from Word
documents in rmd2word
.