Package: pkgaudit 0.4.0

Tyler Smith

pkgaudit: Static Analysis Security Testing (SAST) for R Packages

A static analysis tool that flags security-relevant files and code in R source packages for human review without executing anything it scans. Models package lifecycle execution semantics -- it reports not just what a package does, but when it runs, so code that executes on install or load is distinguishable from code that runs only when called. Reads every surface a package can execute, including 'configure' scripts, help-file macros, and vignettes, and states what it could not read, so a clean result can be checked rather than trusted. Detection rules are data, shipped in a versioned and hash-verified 'SQLite' database.

Authors:Tyler Smith [aut, cre]

pkgaudit_0.4.0.tar.gz
pkgaudit_0.4.0.zip(r-4.7-any)pkgaudit_0.4.0.zip(r-4.6-any)pkgaudit_0.4.0.zip(r-4.5-any)
pkgaudit_0.4.0.tgz(r-4.6-any)pkgaudit_0.4.0.tgz(r-4.5-any)
pkgaudit_0.4.0.tar.gz(r-4.7-any)pkgaudit_0.4.0.tar.gz(r-4.6-any)
pkgaudit_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
pkgaudit/json (API)

# Install 'pkgaudit' in R:
install.packages('pkgaudit', repos = c('https://ropensci-staging.r-universe.dev', 'https://cloud.r-project.org'))

Reviews:rOpenSci Software Review #815()

Bug tracker:https://github.com/tylerjssmith/pkgaudit/issues

Pkgdown/docs site:https://tylerjssmith.github.io

On CRAN:

Conda:

cybersecurityr-securitysecuritysoftware-supply-chain-securitystatic-code-analysisstatic-code-analyzersupply-chain-security

5.08 score 5 stars 12 exports 18 dependencies

Last updated from:4279f8f5d4. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK162
pkgdown docsOK183
source / vignettesOK181
linux-releaseOK139
macos-releaseOK155
macos-oldrelOK128
windows-develOK133
windows-releaseOK128
windows-oldrelOK124
wasm-releaseOK90

Exports:analyze_segmentaudit_packageaudit_tarballemit_sarifexport_unscannedextract_segmentshash_manifestload_rulesnew_findingsnew_segmentrules_versionvalidate_tar

Dependencies:bitbit64blobcachemclicpp11DBIdigestfastmapgluelifecyclememoisepkgconfigrlangRSQLitevctrsxml2xmlparsedata

pkgaudit Rule Coverage
Patterns | Matches | Phases and Contexts | Phases | File Contexts | Code Contexts | Rule-based | Computed

Last update: 2026-09-02
Started: 2026-07-31

pkgaudit Internals
pkgaudit steps | Discover | Extract | Analyze | Resolve | Call list | Invariants | Scanned files are never executed | File size limits are applied before extraction | Failures are contained and counted | Rules are integrity-checked | Every rule is verified against its own examples

Last update: 2026-08-28
Started: 2026-08-11

Getting Started with pkgaudit
Example package | Auditing a package | Examining results | File contexts | Patterns | Matches | Coverage | Errors | Metadata | Subsetting by phase | Reviewing findings | Exporting findings | Auditing a tarball | Rule database integrity

Last update: 2026-08-28
Started: 2026-07-31

R Package Security

Last update: 2026-08-19
Started: 2026-08-19