Skip to content
Back to skills

Profvis

ASecurity

R profvis package for interactive profiling. Use for visualizing R code profiling data.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 4, 2026
data

Security analysis

A100/100

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill profvis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Profvis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Profvis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-profvis/badge)](https://www.skillsdirectory.com/skills/leolin990405-profvis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: profvis
description: R profvis package for interactive profiling. Use for visualizing R code profiling data.
---

# profvis

Interactive visualizations for profiling R code.

## Basic Profiling

```r
library(profvis)

# Profile code block
profvis({
  # Code to profile
  data <- read.csv("large_file.csv")
  result <- lm(y ~ x, data = data)
  summary(result)
})
```

## Save Profile

```r
# Save to file
p <- profvis({
  # Code
})

# Save HTML
htmlwidgets::saveWidget(p, "profile.html")
```

## Profile Function

```r
# Profile a function
my_function <- function(n) {
  x <- rnorm(n)
  y <- x^2
  mean(y)
}

profvis({
  my_function(1e6)
})
```

## Interval

```r
# Adjust sampling interval (ms)
profvis({
  # Code
}, interval = 0.01)  # 10ms intervals
```

## Memory Profiling

```r
# Profile memory
profvis({
  x <- 1:1e7
  y <- x^2
  rm(x)
  gc()
})
```

## Flame Graph

```r
# View as flame graph
p <- profvis({
  # Code
})

# Interactive viewer shows:
# - Flame graph (call stack over time)
# - Data tab (detailed timing)
# - Source code highlighting
```

## With Shiny

```r
# Profile Shiny app
profvis({
  runApp("myapp", display.mode = "normal")
}, interval = 0.01)
```

## Pause Profiling

```r
profvis({
  # Profiled code
  pause(FALSE)  # Stop profiling
  # Not profiled
  pause(TRUE)   # Resume profiling
  # Profiled again
})
```

## Print Summary

```r
p <- profvis({
  # Code
})

# Print summary
print(p)
```

## Tips

```r
# 1. Use small interval for short code
profvis({ fast_code() }, interval = 0.005)

# 2. Run multiple times for stable results
profvis({
  for (i in 1:10) {
    my_function()
  }
})

# 3. Profile realistic workloads
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.