If you want to run from the R command line, you can call this.

slice_funcmain(args)

Arguments

args

Command-line arguments, after they've been checked.

Use the same arguments as the commandline, but sent in as a list. For example,

args <- check_args(arg_parser(c(
   "--config=gen_scaled_ar/rc_kappa.toml",
   "--country=gmb",
   "--years=2010:2011",
   "--overwrite"
   )))
args$country <- "uga"
funcmain(args)