Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RStudio cannot find pandoc on Windows remote desktop #1866

Closed
3 tasks done
pprevos opened this issue Jul 19, 2020 · 5 comments
Closed
3 tasks done

RStudio cannot find pandoc on Windows remote desktop #1866

pprevos opened this issue Jul 19, 2020 · 5 comments
Labels
duplicate

Comments

@pprevos
Copy link

@pprevos pprevos commented Jul 19, 2020

We moved to Windows Remote Desktop and RMarkdown now throws an error as it cannot seem to fine the Pandoc executable.

I raised this on RStudio Community some days ago.

When knitting, RMarkdown calls C:/Program Files/RStudio/bin/pandoc/pandoc, but 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 see the two executable files in that folder.

To make matters wordse, when I run remotes::install_github('rstudio/rmarkdown'), the system breaks (htmltools is not installable). I installed the standard version (see below).

Session info:

R version 4.0.0 (2020-04-24)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server x64 (build 14393), RStudio 1.2.5019

Locale:
  LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252   
  LC_MONETARY=English_Australia.1252 LC_NUMERIC=C                      
  LC_TIME=English_Australia.1252    

Package version:
  base64enc_0.1.3 digest_0.6.25   evaluate_0.14   glue_1.4.1      graphics_4.0.0 
  grDevices_4.0.0 highr_0.8       htmltools_0.5.0 jsonlite_1.7.0  knitr_1.29     
  magrittr_1.5    markdown_1.1    methods_4.0.0   mime_0.9        rlang_0.4.6    
  rmarkdown_2.3   stats_4.0.0     stringi_1.4.6   stringr_1.4.0   tinytex_0.24   
  tools_4.0.0     utils_4.0.0     xfun_0.15       yaml_2.2.1     

Pandoc version: 2.7.2

By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.org/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('rmarkdown'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/rmarkdown').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

@cderv
Copy link
Collaborator

@cderv cderv commented Jul 20, 2020

I think this is related to #1268 about UNC path and pandoc not dealing well with it.

From Community, we see the command contains paths beggining with \\ like -template "\\file01\apps\RLibrary\rmarkdown\rmd\h\default.html":

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

@pprevos
Copy link
Author

@pprevos pprevos commented Aug 8, 2020

Hi, I tried to change the .libPaths() to a mapped drive, e.g. "N:/folder-name" and RMArkdown now works. However, I get errors from other packages.

@cderv
Copy link
Collaborator

@cderv cderv commented Jan 7, 2022

I still believe this is related to #1268 and we'll keep that one open. I close this is to no duplicate tracking.

Thanks for the report.

As an update note, this is a very hard issue for use to solve. It is probably something caused also by Pandoc and not easy to debug.

@cderv cderv closed this as completed Jan 7, 2022
@cderv
Copy link
Collaborator

@cderv cderv commented Jan 7, 2022

Duplicate of #1268

@cderv cderv marked this as a duplicate of #1268 Jan 7, 2022
@cderv cderv added the duplicate label Jan 7, 2022
@github-actions
Copy link

@github-actions github-actions bot commented Jul 12, 2022

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate
Projects
None yet
Development

No branches or pull requests

2 participants