R/ModelFactory.R

#' @include GgmModel.R

ModelFactory <- R6::R6Class("ModelFactory",
    public = list(
        get_model = function(type) {
            return(
                switch(type,
                    ggm = GgmModel$new(),
                    stop(.__ERRORS__$not_developed)
                )
            )
        }
    )
)

Try the powerly package in your browser

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

powerly documentation built on Sept. 9, 2022, 5:07 p.m.