library(profvis)

knitr::opts_chunk$set(collapse = TRUE, comment = "#>")

The RStudio IDE includes integrated support for profiling with profvis.

Profiling code

There are a number of ways to start and stop the profiler.

Finally, it's also possible to use profvis by calling the profvis() function, as demonstrated in the rest of the documentation on this site.

Exploring profiles in RStudio

Profiles will open in a new tab in the RStudio IDE.

When viewed in RStudio, these profiles have some extra features:



rstudio/profvis documentation built on May 4, 2023, 10:24 a.m.