-
Notifications
You must be signed in to change notification settings - Fork 70
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
Eventually use rstudioapi::getMode()
once it is available
#621
Comments
@DavisVaughan What´s the current status for the different packages |
This commit conditions on the presence of rstudioapi 0.17.0. If satisfied then use the new getMode() function (https://github.com/rstudio/rstudioapi/releases/tag/v0.17.0). Otherwise maintain the old behaviour. Annecdotally this printing a slowish data frame went from ~18 seconds to ~3 seconds with this commit and rstudioapi v0.17.0.
This was improved in the latest release of rstudioapi (https://github.com/rstudio/rstudioapi/releases/tag/v0.17.0). Have made a PR (#733) that changes the printing of a slowish |
r-lib/lifecycle#167 revealed that lifecycle signaling is slow due to cli eventually calling
rstudioapi::getVersion()
andrstudioapi::versionInfo()$mode
.I've made a request for
rstudioapi::getMode()
, which should be massively faster thanversionInfo()$mode
rstudio/rstudioapi#280
If that is implemented and lands on CRAN, cli should use that here:
cli/R/aab-rstudio-detect.R
Lines 35 to 36 in 7eb56eb
rstudio/rstudioapi#279 should also make
getVersion()
much faster too.So there is nothing actionable for cli currently, but I wanted to have this issue so we don't forget to update this
The text was updated successfully, but these errors were encountered: