-
-
Notifications
You must be signed in to change notification settings - Fork 977
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
parallel render()'s with different output_file's overwrite each other #499
Comments
Additional non-workaround:
and running has the same problem.
|
Hitting this problem too! how do I up-vote the issue? |
Is there a temporary solution to this problem? |
I use my own package to avoid this problem: https://github.com/petrelharp/templater If it's useful but you hit snags, please let me know over there. |
I'll give it a go and let you know if I hit a snag, cheers! |
I also have this issue; I run a parallel report generation that consists of over 1,000 reports. Often times reports will be "mis-matched" where the title of the report will contain the wrong information from a different report. Setting the |
I commonly write
.Rmd
templates, that then get rendered to create a report with different input parameters. However, if more than one such job is being rendered at the same time, since the name of the intermediate.md
file is based on theinput
, all jobs write to the same intermediate.The result is that I (silently) get wrong reports.
Here is a MWE.
test.Rmd
:test.sh
:Run two at the same time:
Non-workarounds:
intermediates_dir
", but if there's images in the document this fails (render with intermediates_dir fails with images #500)md_document
, then render to html", but the same problem occurs because render actually outputs toinput.utf8.md
, with no chance to change thisA fix?
It seems better to use
tempfile()
, e.g.... at least when output_file is specified.
The text was updated successfully, but these errors were encountered: