You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, RStudio silently runs str(x) whenever you assign a value to the name x in the global environment, in order to populate the Environment pane. As a result,
library("iterators")
x <- iter(1:3)
x$state$i
returns 4L instead of 0L. (str.default evaluates vapply(x, typeof, "") and vapply evaluates as.list.iter(x).) The issue would be resolved if you wrote your own method for str avoiding as.list.iter, or if you moved the functionality of as.list.iter into a different function altogether so that str.default uses as.list.default.
This issue was brought to my attention by a question on Stack Overflow, here.
The text was updated successfully, but these errors were encountered:
By default, RStudio silently runs
str(x)
whenever you assign a value to the namex
in the global environment, in order to populate the Environment pane. As a result,returns
4L
instead of0L
. (str.default
evaluatesvapply(x, typeof, "")
andvapply
evaluatesas.list.iter(x)
.) The issue would be resolved if you wrote your own method forstr
avoidingas.list.iter
, or if you moved the functionality ofas.list.iter
into a different function altogether so thatstr.default
usesas.list.default
.This issue was brought to my attention by a question on Stack Overflow, here.
The text was updated successfully, but these errors were encountered: