Description Usage Arguments Details Examples
Use http://johnmacfarlane.net/pandoc/ to convert tex to docx for those colleagues who use docx.
1 2 3 |
in.file |
A character vector of the md file. |
out.file |
A character vector of the outfile. If
|
path |
The path to where the documents reside/should
be created. Default is the REPORT directory. This
conveniently allows for non paths to be supplied to
|
bib.loc |
Optional path to a .bib resource. |
The user must have pandoc installed and on their path.
pandoc can be installed from:
http://johnmacfarlane.net/pandoc/installing.html
1 2 3 4 5 6 7 | ## 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)
|
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Pandoc not installed in one of the typical locations.
Do you know where Pandoc is installed? (y/n)
sh: 1: -s: not found
docx file generated!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.