getMod: Retrieve module from ModStore

View source: R/utility.R

getModR Documentation

Retrieve module from ModStore

Description

This utility function retrieve tidymodules from the central ModStore using module namespace/id and/or group

Usage

getMod(id = 1, group = NULL)

Arguments

id

Name or Id of the module

group

Group name

Examples


MyModule <- R6::R6Class("MyModule", inherit = tidymodules::TidyModule)
MyModule$new("MyFirst")
MyModule$new("MySecond")
MyModule$new("MyThird", group = "B")

# MyFirst
getMod(1)
getMod("MyFirst")

# MySecond
getMod(2)

# MyThird
getMod(2)
getMod("B-MyThird")
getMod(1, group = "B")


Novartis/tidymodules documentation built on Feb. 27, 2023, 8:35 a.m.