profvis v0.3.6

0

Monthly downloads

0th

Percentile

Interactive Visualizations for Profiling R Code

Interactive visualizations for profiling R code.

Readme

Profvis

Travis-CI Build Status

Profvis is a tool for visualizing code profiling data from R. It creates a web page which provides a graphical interface for exploring the data. Live demo.

Installation

install.packages("profvis")

Documentation

See the documentation site.

Example

To run code with profiling, wrap the expression in profvis(). By default, this will result in the interactive profile visualizer opening in a web browser. You can see a live demo here.

library(profvis)
library(ggplot2)

profvis({
  g <- ggplot(diamonds, aes(carat, price)) + geom_point(size = 1, alpha = 0.2)
  print(g)
})

The profvis() call returns an htmlwidget, which by default when printed opens a web browser. If you wish to save the object, it won't open the browser at first, but you can view it later by typing the variable name at the console, or calling print() on it.

p <- profvis({
  g <- ggplot(diamonds, aes(carat, price)) + geom_point(size = 1, alpha = 0.2)
  print(g)
})


# View it with:
p
# or print(p)

Functions in profvis

Name Description
profvisOutput Widget output function for use in Shiny
print.profvis Print a profvis object
profvis_ui Profvis UI for Shiny Apps
profvis Profile an R expression and visualize profiling data
parse_rprof Parse Rprof output file for use with profvis
pause Pause an R process
renderProfvis Widget render function for use in Shiny
No Results!

Last month downloads

Details

License GPL-3 | file LICENSE
RoxygenNote 6.1.1
URL https://rstudio.github.io/profvis/
Encoding UTF-8
NeedsCompilation yes
Packaged 2019-05-14 13:42:46 UTC; barret
Repository CRAN
Date/Publication 2019-05-14 14:20:03 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/profvis)](http://www.rdocumentation.org/packages/profvis)