Home Comments Thread
New Thread

3 Comments

giscus-bot giscus-bot 2022-12-17 03:54:57
Guest *Miles McBain* @ 2018-08-20 02:03:31 originally posted:

Wow. I learned a lot from picking through this code! Thanks Yihui.

giscus-bot giscus-bot 2022-12-17 03:54:58
Guest *Ogan* @ 2018-09-11 22:44:05 originally posted:

A weird thing I see is that autocomplete of Rstudio seems to execute the function for the active binding.

yihui yihui 2022-12-17 03:55:00

I cannot reproduce it with the latest preview version of RStudio: https://www.rstudio.com/products/rstudio/download/preview/

Originally posted on 2018-09-12 02:57:42

giscus-bot giscus-bot 2022-12-17 03:54:59
Guest *Prabhu* @ 2018-10-07 13:40:35 originally posted:

Yihui,

Can you please clarify the behavior of makeActiveBinding under attach? See below:

e = new.env()
makeActiveBinding("rnd", function(x) runif(10), e)

e$rnd # works
with(e, rnd) # ok

attach(e)
rnd # nope -- shows function

detach(e)
e$rnd # back to normal

Thanks in advance.

yihui yihui 2022-12-17 03:55:01

Sorry, but I don't have an idea.

Originally posted on 2018-10-08 02:52:25

Sign in to join the discussion

Sign in with GitHub