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
In version 2.6.1, functions are not properly recognized when accessing via '$' sign. This means you can no longer see it is a function, you don't get the automatic '()' when accessing it, and you also aren't shown the arguments of the function.
For illustration, this is how they used to show in 2.5.1:
Now in 2.6.1:
I am on:
R version 4.4.1 (2024-06-14 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)
(RSTudio 2024.09.0 Build 375)
The text was updated successfully, but these errors were encountered:
AC <- R6::R6Class(
"AC",
public = list(
x = 1,
y = function(some_argument = "default") {
print(some_argument)
}
)
)
a <- AC$new()
So then under 2.6.1 you see 'y' as a regular (purple) field and not as a function (blue):
This is how it should be (correct under 2.5.1 and also 2.6.0):
So then it seems related to the change made in 2.6.1 regarding ".DollarNames.R6(), avoid use of NextMethod()" (#298).
I was not able to reproduce on my personal PC where I was using R 4.4.2 and also R 4.1.3, but with a newer build of RStudio. So it may be related to the RStudio IDE most likely, as the change made in 2.6.1 was also made for an issue with the RStudio IDE. To recall, this bug occurs under RSTudio 2024.09.0 Build 375.
In version 2.6.1, functions are not properly recognized when accessing via '$' sign. This means you can no longer see it is a function, you don't get the automatic '()' when accessing it, and you also aren't shown the arguments of the function.
For illustration, this is how they used to show in 2.5.1:
Now in 2.6.1:
I am on:
(RSTudio 2024.09.0 Build 375)
The text was updated successfully, but these errors were encountered: