R/utils.R

Defines functions update_tcl_parameters_from_list

update_tcl_parameters_from_list <- function(dict, param_list)
{
    stopifnot(is.list(param_list))

    for (key in names(param_list)) {

        elem <- param_list[[key]]

        if (dict$has_name(key)) {
            tcl.var <- dict$at2(key)
            tclvalue(tcl.var) <- elem
        } else {
            dict$add(key, tclVar(elem))
        }
    }

    invisible(dict)
}

Try the GroupSeq package in your browser

Any scripts or data that you put into this service are public.

GroupSeq documentation built on Dec. 28, 2022, 1:23 a.m.