Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ profvis Public

❗ This is a read-only mirror of the CRAN R package repository. profvis — Interactive Visualizations for Profiling R Code. Homepage: https://profvis.r-lib.orghttps://github.com/r-lib/profvis Report bugs for this package: https://github.com/r-lib/profvis/issues

License

Notifications You must be signed in to change notification settings

cran/profvis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

profvis

R-CMD-check Codecov test coverage

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.

Installation

install.packages("profvis")

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.

library(profvis)

f <- function() {
  pause(0.1)
  g()
  h()
}
g <- function() {
  pause(0.1)
  h()
}
h <- function() {
  pause(0.1)
}

profvis(f())

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(f())

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

About

❗ This is a read-only mirror of the CRAN R package repository. profvis — Interactive Visualizations for Profiling R Code. Homepage: https://profvis.r-lib.orghttps://github.com/r-lib/profvis Report bugs for this package: https://github.com/r-lib/profvis/issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •