Skip to content
Snippets Groups Projects
Unverified Commit e5bc8a3c authored by Todor Kondic's avatar Todor Kondic
Browse files

Inspect if run from GUI

* R/api.R(run) <conf>: Detect if run from GUI

(run_in_dir): Change argument from conf to m.
parent 9a215e94
No related branches found
No related tags found
No related merge requests found
......@@ -19,15 +19,17 @@ run <- function(fn_conf) {
dir.create(conf$project,
showWarnings = F,
recursive = T)
withr::with_dir(new=conf$project,code = run_in_dir(conf))
m <- new_state(conf=conf,
GUI=F)
withr::with_dir(new=conf$project,code = run_in_dir(m))
return()
}
##' @export
run_in_dir <- function(conf) {
m <- load_inputs(conf)
run_in_dir <- function(m) {
m <- load_inputs(m)
m <- mk_comp_tab(m)
m <- gen_base_tab(m)
stop()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment