r-lib / rlang

Low-level API for programming with R
https://rlang.r-lib.org
Other
502 stars 139 forks source link

env_bind_lazy() forces value when symbols are found #1703

Closed moodymudskipper closed 5 months ago

moodymudskipper commented 5 months ago

Or so it seems, I don't believe this is expected ?

x <- 1
rlang::env_bind_lazy(.GlobalEnv, a = x, b = y)
rlang::env_binding_are_lazy(.GlobalEnv, c("a", "b"))
#>     a    b 
#> FALSE TRUE

Curiously I had to alter the reprex because the reprex returns TRUE TRUE (correctly, IMO)

moodymudskipper commented 5 months ago

I cannot reproduce after updating both rlang and R... I believe it was R 4.2.1, the rlang version I'm not sure, might have been the latest one.

Closing since cannot be reproduced...