Skip to content
Back to skills

Devtools

ASecurity

R devtools package for package development. Use for loading, documenting, testing, and building R packages.

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 4, 2026
datatestinggitdocumentation

Security analysis

A100/100

Scanned June 4, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Devtools?

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

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

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: devtools
description: R devtools package for package development. Use for loading, documenting, testing, and building R packages.
---

# devtools

Package development tools.

## Development Workflow

```r
library(devtools)

# Load package for development
load_all()

# Document (roxygen2)
document()

# Test
test()

# Check
check()

# Build
build()

# Install
install()
```

## Loading

```r
# Load all package code
load_all()
load_all("path/to/package")

# Unload
unload()

# Reload
reload()
```

## Documentation

```r
# Generate documentation from roxygen
document()

# Build manual
build_manual()

# Build vignettes
build_vignettes()

# Check documentation
check_man()
```

## Testing

```r
# Run all tests
test()

# Run specific test file
test_file("tests/testthat/test-function.R")

# Test coverage
test_coverage()
test_coverage_file("R/function.R")
```

## Checking

```r
# Full R CMD check
check()

# Quick check
check(args = "--no-examples")

# Check specific aspects
check_man()
check_examples()
check_tests()
check_vignettes()

# Check on CRAN
check_win_devel()
check_win_release()
check_rhub()
```

## Building

```r
# Build source package
build()

# Build binary package
build(binary = TRUE)

# Build and check
build_and_check()
```

## Installing

```r
# Install from local
install()
install("path/to/package")

# Install from GitHub
install_github("user/repo")
install_github("user/repo@branch")
install_github("user/repo@v1.0.0")

# Install from other sources
install_gitlab("user/repo")
install_bitbucket("user/repo")
install_url("https://example.com/package.tar.gz")
install_local("package.tar.gz")

# Install dependencies
install_deps()
install_dev_deps()
```

## Session

```r
# Session info
session_info()

# Package dependencies
package_deps("package")

# Dev mode
dev_mode()
dev_mode(on = FALSE)
```

## Release

```r
# Prepare for CRAN
release()

# Spell check
spell_check()

# Check reverse dependencies
revdep_check()
```

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.

View all in data →

Comments

Loading comments…

Newsletter

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