counter_init: Counter constructor.

View source: R/class_counter.R

counter_initR Documentation

Counter constructor.

Description

Not a user-side function. Do not invoke directly.

Usage

counter_init(names = NULL)

Arguments

names

Character vector of names to add to the new counter.

Details

Creates a counter object as described at https://books.ropensci.org/targets-design/classes.html#counter-class.

Value

A new counter object.

Examples

counter <- counter_init()
counter_set_names(counter, letters)

tarchetypes documentation built on Sept. 30, 2024, 9:18 a.m.