-
-
Notifications
You must be signed in to change notification settings - Fork 979
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
rmarkdown::render crashes in parallel with parallel::makeForkCluster on macOS and Apple Silicon #2561
Comments
I don't know enough on using parallel with Fork logic so that will be hard to investigate. I know that Related parallel issue
So this could be a new occurence of using rmarkdown in parallel logic. I would say this is a limitation. If you can get to the bottom of what is happening we could think of a fix. Any help appreciated on this one. |
Thanks for the reply. I did have a look at these earlier issues that you mentioned and tried some of the proposed fixes, to no avail. Two additional notes:
|
|
This is really interesting. @yihui do you know anything as a Mac user on this type of run ? |
One more comment after further tests: the bug remains if I run only one instance in parallel: foreach(temp_counter = seq(1, 1)) %dopar% { ... } The error message makes little sense in this context. |
This problem is very deep... At the bottom, it's caused by the default From
If you set
This might have revealed a bug of rmarkdown when running |
Thanks for the reply. Setting |
Problem description
I am knitting multiple HTML documents from RMD files in parallel. Here is a small sample reproducing the bug:
I receive error messages like this:
System information
The bug appears on multiple versions of RStudio / rmarkdown / pandoc, including this one:
R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.5, RStudio 2024.4.2.764
Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
Package version:
base64enc_0.1.3 bslib_0.6.0 cachem_1.0.8 cli_3.6.2 digest_0.6.33 ellipsis_0.3.2 evaluate_0.23
fastmap_1.1.1 fontawesome_0.5.2 fs_1.6.3 glue_1.7.0 graphics_4.3.2 grDevices_4.3.2 highr_0.10
htmltools_0.5.7 jquerylib_0.1.4 jsonlite_1.8.7 knitr_1.43 lifecycle_1.0.4 magrittr_2.0.3 memoise_2.0.1
methods_4.3.2 mime_0.12 R6_2.5.1 rappdirs_0.3.3 rlang_1.1.4 rmarkdown_2.22 sass_0.4.7
stats_4.3.2 stringi_1.8.2 stringr_1.5.1 tinytex_0.49 tools_4.3.2 utils_4.3.2 vctrs_0.6.5
xfun_0.41 yaml_2.3.7
Pandoc version: 3.1.11
Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
formatted your issue so it is easier for us to read?
included a minimal, self-contained, and reproducible example?
pasted the output from
xfun::session_info('rmarkdown')
in your issue?upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
installed and tested your bug with the development version of the rmarkdown package using
remotes::install_github("rstudio/rmarkdown")
?The text was updated successfully, but these errors were encountered: