watch: Watch a variable.

Description Usage Arguments Value Author(s) Examples

View source: R/watch_variable.R

Description

Track how a variable is updated. This function was written by Hadley Wickham. Original source is http://www.mail-archive.com/r-help@r-project.org/msg125980.html.

Usage

1
  watch(varname)

Arguments

varname

A character with the name of the variable to be watched.

Value

Invisibly returns the addTaskCallback return values, an integer giving the position in the list of task callbacks.

Author(s)

Hadley Wickham

Examples

1
2
3
a <- 1
watch("a")
a <- 2

lgatto/tipsntRicks documentation built on May 21, 2019, 6:08 a.m.