Looks like that trace didn't capture whatever might be going on; the R functions that were running took about ~2s in total. So something else is going on behind the scenes.
Other things worth trying:
-
You can try resetting RStudio's state: https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State.
-
Make sure the workspace is not restored on startup (
[ ] Restore .RData into workspace on startup
):
- Disable project indexing (see
[ ] Index source files (for code search/navigation)
)
- Disable the Packages pane (see
[x] Enable packages pane
)
- Disable code diagnostics (
[ ] Show diagnostics for R
)
- Disable Git / SVN integration (
[ ] Enable version control interface for RStudio projects
)
If none of these work for you then you'll have to provide more information on your environment -- your experience is not typical, and the most likely explanation is something unique about the environment in which you're running RStudio.