# NOT RUN {
a %<-% { 1 }
f <- futureOf(a)
print(f)
b %<-% { 2 }
f <- futureOf(b)
print(f)
## All futures
fs <- futureOf()
print(fs)
## Futures part of environment
env <- new.env()
env$c %<-% { 3 }
f <- futureOf(env$c)
print(f)
f2 <- futureOf(c, envir = env)
print(f2)
f3 <- futureOf("c", envir = env)
print(f3)
fs <- futureOf(envir = env)
print(fs)
# }
Run the code above in your browser using DataLab