Learn R Programming

golem (version 0.1)

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 = get_golem_wd(), 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.