Fail to generate file in Rmarkdwon. OpenBinaryFile: does not exist (No such file or directory)

Hi everyone,

When I knitr to PDF, R markdown failed to generate a PDF output and following error messages occurred.

processing file: test.Rmd
  |.........                                                        |  14%
  ordinary text without R code

  |...................                                              |  29%
label: setup (with options) 
List of 1
 $ include: logi FALSE

  |............................                                     |  43%
  ordinary text without R code

  |.....................................                            |  57%
label: cars
  |..............................................                   |  71%
  ordinary text without R code

  |........................................................         |  86%
label: pressure (with options) 
List of 1
 $ echo: logi FALSE

  |.................................................................| 100%
  ordinary text without R code


output file: test.knit.md

And the error message:

"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS test.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output test.tex --template "C:\R\R-3.5.2\library\rmarkdown\rmd\latex\default-1.17.0.2.tex" --highlight-style tango --pdf-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in" --variable "compact-title:yes" 
pandoc.exe: test.utf8.md: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 1
Execution halted

And the rmarkdown session information is such that

> sessionInfo("rmarkdown")
R version 3.6.0 (2019-04-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 16299)

Matrix products: default

locale:
[1] LC_COLLATE=English_Australia.1252 
[2] LC_CTYPE=English_Australia.1252   
[3] LC_MONETARY=English_Australia.1252
[4] LC_NUMERIC=C                      
[5] LC_TIME=English_Australia.1252    

attached base packages:
character(0)

other attached packages:
[1] rmarkdown_1.13

loaded via a namespace (and not attached):
 [1] compiler_3.6.0  graphics_3.6.0  htmltools_0.3.6
 [4] tools_3.6.0     utils_3.6.0     yaml_2.2.0     
 [7] grDevices_3.6.0 Rcpp_1.0.1      stats_3.6.0    
[10] datasets_3.6.0  knitr_1.23      methods_3.6.0  
[13] xfun_0.7        digest_0.6.19   base_3.6.0     
[16] evaluate_0.14

Could anyone advise what I should do in this regard?

I am having the same issue and am interested in any ideas for solutions

1 Like

This might be the same issue as

and

Is your Rmd on a network drive?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.