I am trying to reproduce an example for the tex2docx function in the reports R package and get the following error.
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)
Error message
pandoc.exe: Error reading bibliography `C:/Users/Muhammad' citeproc: the format of the bibliographic database could not be recognized using the file extension. docx file generated! Warning message: running command 'C:\Users\MUHAMM~1\AppData\Local\Pandoc\pandoc.exe -s C:/Users/Muhammad Yaseen/R/win-library/3.0/reports/extdata/doc_library/apa6.qual_tex/doc.tex -o C:/Users/Muhammad Yaseen/Documents/test.docx --bibliography=C:/Users/Muhammad Yaseen/R/win-library/3.0/reports/extdata/docs/example.bib' had status 23
I wonder how to get the tex2docx function in the reports R package. Any help would be greatly appreciated. Thanks
source share