vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

Auto refresh/reload table viewer

Open acarril opened this issue 3 years ago • 13 comments

Is your feature request related to a problem? Please describe. Table viewer does not reload automatically when the dataframe or matrix being shown changes. It is somewhat cumbersome to have to close that view and re-open it in order to reflect changes. I apologize if this has already been discussed, but I couldn't find a related issue.

Describe the solution you'd like Ideally, the view of the table will refresh/reload automatically when the dataframe or matrix being displayed is modified.

Describe alternatives you've considered A somewhat "inelegant" alternative would be to just implement a keybinding or command that closes the view of an object foo and then immediately calls View(foo) again.

Additional context Below is a recording of what I mean, hoping it helps to make my point more clear. The simple example code is

library(dplyr)
library(magrittr)

# Open table viewer for `df`
df <- starwars
View(df)

# Update `df`; problem is that changes are not reflected in viewer
df %<>%
  filter(height < 100)

https://user-images.githubusercontent.com/9773292/155612306-407ac62f-29ef-40a4-abf3-40f894b79b5c.mov

acarril avatar Feb 24 '22 21:02 acarril

Many times I was about to write this feature request.

I didn't it because, in my context, I found useful to compare the previous values with the new ones. Anyway this preference (refreshing or not refreshing) may be resolved with a setting or with a UI artifact making a call to action.

Curious to see extension team's replies.

albertosantini avatar Feb 25 '22 12:02 albertosantini

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Feb 26 '23 02:02 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Mar 13 '23 01:03 github-actions[bot]

This would be a really nice feature to have, even if it's a flag we can turn on to auto refresh or keep stale to compare as @albertosantini mentioned

eliasyishak avatar Mar 28 '23 23:03 eliasyishak

I just created an account to voice my support for this feature. To expand a little further, combining the power to pop out to a new window with auto refresh would be optimal for working with large dataframes. Thanks

jNorton519 avatar Apr 04 '23 15:04 jNorton519

Just wanted to check in and see if there's been any progress on implementing an auto-refresh for the table or list? Thanks for taking the time to work on this issue.

marveloushaotian avatar May 03 '23 12:05 marveloushaotian

Would be amazing have this feature. So far this is one of the main reasons to keep using RStudio.

v-vieira avatar Oct 13 '23 01:10 v-vieira

Agreed that it wold be very nice to have!

itsmevictor avatar Nov 05 '23 18:11 itsmevictor

Agreed, I miss that.

GB-IHE avatar Jan 01 '24 21:01 GB-IHE

Aggred !

BoudSTER avatar Feb 20 '24 12:02 BoudSTER

Agree! either a settings options "AutoRefreshDataViewer" = False/True, or a button somewhere in the data viewer to "refresh" the data view :+1: :pray:

PavelDvorak avatar Feb 23 '24 12:02 PavelDvorak

Agreed!!

pabloreina97 avatar May 07 '24 12:05 pabloreina97

Agreed!

ajtwood avatar May 14 '24 00:05 ajtwood