How can I switch between multiple gtsummary tables and plots in Positron like in RStudio?

I am using gtsummary in R. For example, I create d1 with mean and SD, and d2 with n (%). In RStudio, I can easily view both outputs because the Viewer/Plots pane lets me move between items using the forward and back arrows. I can do the same for graphs as well.

In Positron, I can navigate plot history in the Plots pane, but I am not able to move back and forth between table outputs in the same way. Is this currently possible in Positron? If not, what is the best way to view and manage multiple gtsummary tables and other outputs efficiently?

I would appreciate any suggested workflow or workaround.

This is not currently possible in Positron. We're tracking the feature request here; please comment/upvote to let us know you're interested!

You can work around as follows:

# Get summary of d1 and d2
sum_d1 <- gtsummary::tbl_summary(d1)
sum_d2 <- gtsummary::tbl_summary(d2)

# Show d1's summary
sum_d1

# Show d2's summary
sum_d2

# Go back to d1's summary
sum_d1

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.