tidyverse / reprex

Render bits of R code for sharing, e.g., on GitHub or StackOverflow.

Home Page:https://reprex.tidyverse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update `rstudio_open_and_select_all()`

jennybc opened this issue · comments

A better API for activating documents in RStudio is taking shape. Next time I work on reprex, check the status and consider updating rstudio_open_and_select_all() to take advantage.

Work already completed in the IDE: rstudio/rstudio#8938

Related issues re: exposing the functionality in rstudioapi:
rstudio/rstudioapi#250
rstudio/rstudioapi#251

I read up on this 2022-08-14, but it feels like the changes in the IDE are too new to use in reprex, i.e. I'd have to do some sort of check of the RStudio version, which just makes everything more brittle.