a <- 1
rebind("a", 2)
a
# Throws error if no existing binding
if (FALSE) rebind("b", 2)
local({
rebind("a", 3)
})
a
# Can't find get because doesn't look past globalenv
if (FALSE) rebind("get", 1)
Run the code above in your browser using DataLab