# NOT RUN {
e <- env(a = "foo")
# Returns existing binding
env_cache(e, "a", "default")
# Creates a `b` binding and returns its default value
env_cache(e, "b", "default")
# Now `b` is defined
e$b
# }
Run the code above in your browser using DataLab