increment: Increment an in-place counter

View source: R/utils_shiny.R

incrementR Documentation

Increment an in-place counter

Description

Increment an in-place counter

Usage

increment(x, e = rlang::caller_env())

Arguments

x

num/reactiveVal/reactiveValues Any numeric to be incremented

e

env Calling environment

Value

none Increments the counter in the parent environment (modifies in place)

Examples

x <- 1
increment(x)
x

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.