Learn R Programming

golem (version 0.0.1.9999)

add_module: Create a module

Description

This function creates a module inside the R/ folder, based on a specific module structure.

Usage

add_module(name, pkg = ".", open = TRUE, dir_create = TRUE)

Arguments

name

The name of the module

pkg

Path to the root of the package. Default is ".".

open

Should the file be opened?

dir_create

Creates the directory if it doesn't exist, default is TRUE.