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

render with intermediates_dir fails with images #500

Closed
petrelharp opened this issue Aug 17, 2015 · 2 comments · Fixed by #1172
Closed

render with intermediates_dir fails with images #500

petrelharp opened this issue Aug 17, 2015 · 2 comments · Fixed by #1172
Labels
bug an unexpected problem or unintended behavior
Milestone

Comments

@petrelharp
Copy link

petrelharp commented Aug 17, 2015

The pandoc call fails because the _files directory is not put in intermediates_dir, so pandoc can't find the images.

MWE:
test.Rmd:

```{r plot}
plot(1)
```

Then, calling

render("test.Rmd", intermediates_dir="temp")

fails with

# pandoc: Could not fetch test_files/figure-html/plot-1.png

This is with the github version of rmarkdown (pulled just now).

Changing the relevant line in render to

files_dir <- intermediates_loc( rmarkdown:::knitr_files_dir(basename(output_file)))

fixes it in my simple case, but might break other use cases.

@yihui
Copy link
Member

yihui commented Oct 24, 2017

Should be fixed now. Thanks for the report!

@github-actions
Copy link

github-actions bot commented Nov 3, 2020

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 Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants