-
-
Notifications
You must be signed in to change notification settings - Fork 982
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
pandoc error with pdf when .Rmd is on network file share (NFS) #701
Comments
I have a similar problem, however my mountpoint is cifs (running a linux server and client):
However, I get it to run from the terminal, when I remove some of the optional parameters:
No error, resulting html looks ok. |
I ran into the same error using |
By the way, this issue was also reported to pandoc at jgm/pandoc#1326. Do not seem to be a pandoc issue for them. I have the same error with html conversion from markdown on a network file share. |
Yup, I am convinced this is not an RStudio problem. It only got reported first by people using RStudio. We need more testing with producing pandoc output on remote drives. |
One way that That may work more reliably than having |
In my case, this would not be a solution; both the input and output file are in the same remote folder. |
Maybe an |
I realize it seems like this is an expedient solution to the problem at On Tue, Aug 2, 2016 at 4:39 PM, Kevin Ushey [email protected]
|
Following your suggestion, I used When I run
I first set up Example for Test_file.Rmd and
The error is now different. Example for Test_file.Rmd and
It works ! However everything is in my local drive and I have to move the output html file to my working directory located in network drive. Not perfect, but better than the annoying error. Theses tests make me think that their is someting odd with file paths with rmarkdown render and pandoc because I think that example 2 with just I did not test with pdf output. If someone willing to check if |
I am not (yet) an RStudio user. I resolved my issue by letting More details on this solution can be found over at the pertaining |
This is my solution for Ubuntu (windows will require different system calls(
|
@kevinushey Is there any chance you all are still looking at this? Would there be a way to use a temp directory / temp file and then copy to destination? I believe this issue or similar also affects Notebook files on CIFS drives. They show output in the editor, but not in the Viewer and an error message displays at the top: "Error creating notebook: pandoc document conversion failed with error 1" |
I happened to encounter the same problem. I use Linux Mint (18.3) on both my Laptop as well as my Desktop. I store my .Rmd on a NAS which is mounted via CIFS on the Desktop and synchronized on the Laptop (some Cloud Service).
Yet, when I randomly comment the I am looking forward to seeing this one fixed in v 1.9. Thanks in advanced. Let me know if you need any more info. UPDATE:
|
With the latest rmarkdown, I'm still experiencing this issue on Windows 10 with the Rmd on a network drive. Saving it locally and knitting works. |
I'm struggling with this issue now, using Windows 10, and the following sessionInfo(): R version 3.5.1 (2018-07-02) Matrix products: default locale: attached base packages: loaded via a namespace (and not attached): |
It looks like Pandoc actually found a fix for this issue using |
I've been trying to make a fix but am a bit stuck. If the RMD is very basic and doesn't have any figures or special options then changing
However, this creates several more issues. Figures no longer can be found. Additionally, this hard-coded change causes the intermediates_dir option ( |
Trying to change this in the |
Does knitting files on a network still work if using an older version of Pandoc? Is downgrading pandoc the (short-term) answer? |
struggling with a similar problem, dirty fix seemed to be ensuring the input rmd is all in lowercase. |
For my case, the installation is on Windows 10 and my home folder is on file server with UNC path. The default installation will create R library on file server, home folder, which caused the issue. My workaround is to
|
This is also a problem for me (on a Mac) and I'm supposed to be sharing work in an online drive, so copying it to my desktop each time to knit to word is not practical...Has anyone found workarounds? What if it is done on GIT? |
This is interesting that you have that on Mac too! |
Sorry, I hope I've posted in the right place...I'm not sure I have! I am trying to knit my bookdown to word, and it fails each time. The error message:
R version:
Mac is OS Catalina, 10.15.7 Thank you for your patience |
I am on OSX El Capitain and have a network file share mounted using sshfs.
When I run markdown::render() (or use the menu item knit->PDF in Studio) on a .Rmd file on my local drive it works fine. When the .Rmd is located on the file share, it will generate a PDF, but it terminates with the message below. This in itself is usually not a problem but there are two side effects:
(1) The PDF does not open in the internal viewer in RStudio. I have to open the PDF directly with another application.
(2) When I use the "keep_tex: true" option in the preamble, I don't get a .tex file
One possible clue: path names to files and directories are not case-sensitive on my local drive (OSX) but are case-sensitive on the file share drive.
Error message:
pandoc: InterimReportMay18.pdf: hClose: invalid argument (Bad file descriptor)
Error: pandoc document conversion failed with error 1
Execution halted
The text was updated successfully, but these errors were encountered: