-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r.session.objectLengthLimit
seems not working well
#811
Comments
Could you provide a reproducible example? It looks like calling system.time(str(ED)) and see if the timing is significant? |
It appears to be the case.
And this is from RStudio. In RStudio, there is no delay at all.
|
It is quite strange that the timing of the same Would you like to try the same in a vanilla R and a radian console (if you are using it in your vscode) without vscode? |
I tried with the following example in vanilla R and radian: n <- 10e4
ED <- lapply(1:20, function(i) {
df <- lapply(1:60, function(j) rnorm(n))
names(df) <- sprintf("x%d", seq_along(df))
as.data.frame(df)
}) In radian system.time(str(ED))
system.time(utils::capture.output(str(ED)))
In vanilla R: system.time(str(ED))
system.time(utils::capture.output(str(ED)))
It looks like the difference between |
It is now clear that Let me think if I could make |
Thanks for the investigation. I did set |
I'll probably expand the values of
|
Thanks for the new implementation. I have tried it, but not fully understand how it impacts on the delay issue. The delay is still the same and the timing to call
Maybe I could make it more clear on the issue. What I observe so far is that, once those data are loaded, then when I just try something like the following in the terminal
One would expect that those objects should appear in the workspace immediately without any delay. However, it is not the case. |
Thanks for the testing of |
Here is a dummy Basically, this tells the number of characters in a variable name, data type for this variable and maximum number of characters for the value in that variable. So Hope this helps.
|
A setting of Would you like to try the latest build of the #815? |
Thanks, would like to have another try. |
Thanks for having another implementation again quickly. However, I think still something strange is going on here. With the latest option, and my current settings : This time, data in the workspace does not show any information.
I also tried to set
Calling |
Calling |
Find a good combination is hard. Now, the only time there is no delay if there is no When I try to look at the Is this something that can be implemented in VSCode-R as well? |
It requires a two-way communication between vscode-R and user R session. And the click is only responsive when R is not busy. Currently, we only rely on a mostly one-way communication approach. |
What about disabling the hover for data.frame, just showing in the workspace? |
It will not make a difference. The hover and the workspace viewer both share the same information from The overhead comes from that if the call is too slow for a single object, the delay after user input will be notable. |
The delay after calling other objects in the terminal is still significant even setting
r.session.objectLengthLimit
to 100.As long as the workspace can show the information from
str()
for adata.frame
, the issue is still there.Although I have not checked for the setting smaller than 100, the only time the issue is gone after loading 9 years data (reported in #174) was to set
objectLengthLimit
to 0 or 1. This time,str()
information won't appear at all.The text was updated successfully, but these errors were encountered: