counter_init: Counter constructor.

Description Usage Arguments Details Value Examples

View source: R/class_counter.R

Description

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

Usage

1

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

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

tarchetypes documentation built on Aug. 4, 2021, 9:05 a.m.