My company moved to Windows Remote Desktop.
When knitting an RMarkdown, I get this error: "pandoc.exe: \\: openBinaryFile: does not exist (No such file or directory)
"
The system variable "RSTUDIO_PANDOC
is set to "C:/Program Files/RStudio/bin/pandoc"
.
Using Powershell, I do indeed see the two executable files in that folder.
Any suggestions?
cderv
July 20, 2020, 7:14am
2
Just to be sure, can you check the result of
rmarkdown::find_pandoc()
to see if the version found by default is the one from RStudio or not ?
And can you provide the full pandoc command ?
I suspect there is something related to network drive. This does not mean that pandoc is not found but that there is a path seen as \\
and that it can't be found.
pandoc.exe: \\: openBinaryFile: does not exist (No such file or directory)
This could happen with one of the ressource in a network drive or something like that. This was / is a pandoc issue, I am not sure where we are on it.
Related issue:
Hi,
I'm trying to knit a RMarkdown file (just the default template that you begin with as example) on a networked drive, but am getting a error which I cannot seem to solve:
[image]
How can I solve this error?
Info on my session:
[image]
Used RMarkdown code:
title: "testing"
author: "Koen"
date: "9-7-2020"
output: html_document
knitr::opts_chunk$set(echo = TRUE)
R Markdown
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com .
When you click the Knit button a document will be generated that includes both content as well as the output of any embe…
The system does find pandoc:
$version
[1] ‘2.7.2’
$dir
[1] "C:/Program Files/RStudio/bin/pandoc"
However, when I knit the default RMarkdown file I get the error.
output file: test.knit.md
"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS test.utf8.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output test.html --email-obfuscation none --self-contained --standalone --section-divs --template "\\file01\apps\RLibrary\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\PeterP\AppData\Local\Temp\RtmpkVdgnd\rmarkdown-str251b8458b147.html" --mathjax --variable "mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --lua-filter "\\file01/apps/RLibrary/rmarkdown/rmd/lua/pagebreak.lua" --lua-filter "\\file01/apps/RLibrary/rmarkdown/rmd/lua/latex-div.lua"
pandoc.exe: \\: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 1
Execution halted
This only seems to be a problem on the remote desktop.
cderv
July 20, 2020, 7:26am
4
I think this comes from here. The Rmarkdown package is installed on a network drive and pandoc does not know how to handle that. There are some workarounds discussed here (like mounting the path)
opened 06:07AM - 24 Feb 18 UTC
bug
help wanted
I am trying to server Rmd using shiny server. However, it seems rmarkdown or pan… doc is buggy.
It works well on Rstudio but fails deploy on rstudio connect too.
yaml config:
```
output:
flexdashboard::flex_dashboard:
social: menu
source: embed
storyboard: yes
```
Rmarkdown version:
```
packageVersion("rmarkdown")
[1] ‘1.8’
```
```
shiny-server --version
Shiny Server v1.5.3.838
Node.js v6.10.0
```
pandoc version
```
/opt/shiny-server/ext/pandoc/pandoc --version
pandoc 1.12.3
Compiled with texmath 0.6.6, highlighting-kate 0.5.6.
```
sessionInfo():
```
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
```
here is the shiny server log:
```
processing file: index.Rmd
output file: /tmp/rmarkdown/e01d3e5bbe48ef364e37eb0580046563/index.knit.md
pandoc: /tmp/RtmpWH829n/rmarkdown-str67a94810a85d.html: openFile: does not exist (No such file or directory)
Warning: Error in : pandoc document conversion failed with error 1
Stack trace (innermost first):
115: pandoc_convert
114: convert
113: <Anonymous>
112: do.call
111: contextFunc
110: .getReactiveEnvironment()$runWith
109: shiny::maskReactiveContext
108: <reactive>
95: doc
94: shiny::renderUI
93: func
92: force
91: withVisible
90: withCallingHandlers
89: globals$domain$wrapSync
88: promises::with_promise_domain
87: captureStackTraces
83: tryCatch
82: do
81: hybrid_chain
80: origRenderFunc
79: output$__reactivedoc__
3: <Anonymous>
2: do.call
1: rmarkdown::run
```
It should have been fixed in pandoc however (Windows UNC Paths Broken · Issue #5127 · jgm/pandoc · GitHub ) but maybe there is still issue.
_For reference, cross posted on GH: Issues · rstudio/rmarkdown · GitHub
system
Closed
August 10, 2020, 7:26am
5
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.