tex2docx(in.file = NULL, out.file = NULL, path = paste0(getwd(), "/REPORT"), bib.loc = getOption("bib.loc")) tex2html(in.file = NULL, out.file = NULL, path = paste0(getwd(), "/REPORT"), bib.loc = getOption("bib.loc")) md2docx(in.file = NULL, out.file = NULL, path = paste0(getwd(), "/REPORT"), bib.loc = getOption("bib.loc")) md2tex(in.file = NULL, out.file = NULL, path = paste0(getwd(), "/REPORT"), bib.loc = getOption("bib.loc"))
"replace" over writes the original HTML file.
Default, NULL, uses the root name of the
in.file plus a number 2.in.file and out.file (i.e., just the file
names). Paths can be supplied to in.file and
out.file by setting path to NULL.Use http://johnmacfarlane.net/pandoc/ to convert tex/markdown to docx for those colleagues who use docx.
The user must have pandoc installed and on their path. pandoc can be installed from: http://johnmacfarlane.net/pandoc/installing.html
md2docx converts markdown (a .md file) not
Rmarkdown (.Rmd). Use knitr to knit to HTML first.
## Not run: # DOC <- system.file("extdata/doc_library/apa6.qual_tex/doc.tex",# package = "reports")# BIB <- system.file("extdata/docs/example.bib", package = "reports")# tex2docx(DOC, file.path(getwd(), "test.docx"), path = NULL, bib.loc = BIB)# ## End(Not run)