forked from bioinformatics-leibniz-hki/correlation-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalyze.R
45 lines (34 loc) · 730 Bytes
/
analyze.R
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
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env Rscript
#
# Setup and configure drake
#
source(here::here("src/setup.R"))
cache <- drake::new_cache(".drake")
drake::drake_cache(here::here(".drake"))$unlock()
make(
# plan
plan = plan,
parallelism = "clustermq",
# allow multiple works to access global env at the same time
lock_envir = FALSE,
recoverable = TRUE,
recover = TRUE,
# caching
cache = cache,
garbage_collection = TRUE,
memory_strategy = "preclean",
# config
seed = 1337,
keep_going = TRUE,
jobs = jobs,
# output
verbose = 1,
format = "qs",
log_make = "log/drake.log"
)
rmarkdown::render(
input = "src/report.Rmd",
knit_root_dir = ".",
output_dir = ".",
output_file = "report.html",
)