Delayed class that manages dependencies and computes when necessary

Examples

d <- delayed(3 + 4) methods::is(d, "Delayed")
#> [1] TRUE
d$compute()
#> [1] 7