This function creates a {tm} module class inside the current folder.
add_module(
name,
inherit = "TidyModule",
path = getwd(),
prefix = "tm",
open = TRUE,
dir_create = TRUE,
export = FALSE
)The class name of the module.
Parent module class. Default is TidyModule.
Where to created the file. Default is getwd(). The function will add R to the path if the sub-folder exists.
filename prefix. Default is tm. Set to `NULL“ to disable.
Should the file be opened?
Creates the directory if it doesn't exist, default is TRUE.
Logical. Should the module be exported? Default is FALSE.
As a convention, this function will automatically capitalize the first character of the name argument.