# NOT RUN {
# }
# NOT RUN {
# create temporary directory
dir <- paste0(tempdir(), "/conf", round(runif(n = 1, max = 10000)))
dir.create(dir, recursive = TRUE)
# create and save conf
conf <- configure_task(dir_path = dir,
conf_descr = list(title = "my_title",
description = "my_descr"),
fun_path = dir, # as an example
fun_name = "my_fun_name",
fun_args = list(x = 1,
y = 0:4,
z = iris),
priority = 1)
# catch results
list.files(conf$dir)
read_conf <- yaml::read_yaml(paste0(conf$dir, "conf.yml"))
y <- readRDS(paste0(conf$dir, "inputs/y.RDS"))
z <- readRDS(paste0(conf$dir, "inputs/z.RDS"))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab