-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.R
More file actions
32 lines (14 loc) · 746 Bytes
/
make.R
File metadata and controls
32 lines (14 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
library(callr)
p4 <- callr::r_bg(function() rmarkdown::render(here::here("notebook/complete-discrete-version.Rmd"))
#env = c(LD_PRELOAD="libnvblas.so")
)
p1 <- callr::r_bg(function() rmarkdown::render("notebook/greta-gp.Rmd") )
p3 <- callr::r_bg(function() rmarkdown::render(here::here("manuscript/appendix/appendix.Rmd")) )
# greta tasks probably cannot run in parallel given current memory settings
p4 <- callr::r_bg(function() rmarkdown::render("notebook/may-outbreak-ghost.Rmd"),
env = c(LD_PRELOAD="libnvblas.so"))
p5 <- callr::r_bg(function() rmarkdown::render("notebook/may-outbreak-ghost-2.Rmd") )
callr::poll(list(p4), -1)
p4$read_output_lines()
p4$get_result()
p4$get_exit_status()