Skip to content

gunsales

Statistical Analysis of Monthly Background Checks of Gun Purchases

v0.1.3 · Jan 14, 2026 · Apache License (== 2)

Description

Statistical analysis of monthly background checks of gun purchases for the New York Times story "What Drives Gun Sales: Terrorism, Obama and Calls for Restrictions" at <https://www.nytimes.com/interactive/2015/12/10/us/gun-sales-terrorism-obama-restrictions.html> is provided.

Downloads

CRAN

568

Last 30 days

6481st

1.8K

Last 90 days

5.1K

Last year

Trend: +10.7% (30d vs prior 30d)

r2u CRAN

1

Last 30 days

27

Last 90 days

116

Last year

Trend: -88.9% (30d vs prior 30d)

autoCRAN

2

Last 7 days

22

Last 30 days

2

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

628

Files

26

Compiled share

0%

Has compiled src

No

Language breakdown

R 418 (66.6%)Docs 149 (23.7%)Vignettes 61 (9.7%)

API

Exported functions

3

Internal functions

8

Recent export changes

v0.1.0+3 analysis, plot_gunsales, ggplot_gunsales

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

100%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

66.7%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.0.0

System requirements

C++ standard

License

Apache License (== 2)

License flags

not SPDX, not OSI

History

Versions

4

First release

2016-02-29

Latest release

2026-01-14

Avg cadence

332 days

Cold removal rate

Dep drift

5

LOC over versions

v0.1.0: 595 LOCv0.1.1: 628 LOCv0.1.2: 628 LOCv0.1.3: 628 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies dplyr rlang seasonal ggplot2 data.table zoo x13binary gunsales

Version History

5 tracked
new 0.1.3 Mar 10, 2026
updated 0.1.3 ← 0.1.2 diff Jan 13, 2026
updated 0.1.2 ← 0.1.1 diff Jan 29, 2017
updated 0.1.1 ← 0.1.0 diff Mar 3, 2016
new 0.1.0 Feb 28, 2016