It might be helpful for the script if the most important parameters were collected and passed through an external JSON file.
E.g., see in tracer.R
b_type <- "abs"
b_param <- 10
mw <- 5
step_win <- c(1, 1, 1, -1, -1, -1)
protect <- 200
thr <- 25
w <- 5