Open yhm-amber opened 3 months ago
Why ... %>% '$<-' (...)
with future
will make this error ? ...
Thanks for the report. I tracked this down to:
> f <- function(x) { x %>% `$<-`(abc, "") }
> codetools::findGlobals(f)
Error in e[[4]] : subscript out of bounds
which means this is outside of Futureverse. So, I think you've actually found a bug in the codetools package. I report to its maintainer.
Thanks for the report. I tracked this down to:
> f <- function(x) { x %>% `$<-`(abc, "") } > codetools::findGlobals(f) Error in e[[4]] : subscript out of bounds
which means this is outside of Futureverse. So, I think you've actually found a bug in the codetools package. I report to its maintainer.
Okay, thanks. 😄
And I found that just '$<-'
will error, but '[[<-'
won't.
Or
foo = `$<-`
at first then use foo
will not error also.
Yes; I've just reported at https://gitlab.com/luke-tierney/codetools/-/issues/16
Describe the bug
I got a error
Error in e[[4]] : subscript out of bounds
when I run this:and this will not give me that error:
I tested them both in my rstudio and webr repl.
Reproduce example
Expected behavior
This error should not happens here.
Session information