R Observatory
Search

Relational Data from the 'Star Wars' API for Learning and Teaching

install.packages("starwarsdb")
CRAN 30-day downloads, method
370−13.2% down on the 30 days before, the worse direction
Test coverage, method
100%of lines run by tests

Provides data about the 'Star Wars' movie franchise in a set of relational tables or as a complete 'DuckDB' database. All data was collected from the open source 'Star Wars' API.

Maintainer
Garrick Aden-Buie
Latest release
23 Aug 2025
First release
28 Oct 2020

Compare with another package

More details
Releases
3
Needs compilation
No
Needs R
>= 2.10
Config/Needs/website
any::DiagrammeR, any::DiagrammeRsvg, gadenbuie/grkgdown
LazyData
true
RoxygenNote
7.3.2
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("starwarsdb")
APA
Aden-Buie, G. (2025). starwarsdb: Relational Data from the 'Star Wars' API for Learning and
Teaching (Version 0.1.3) [Computer software]. https://doi.org/10.32614/CRAN.package.starwarsdb
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for starwarsdb version 0.1.3 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.1.3
    Time taken
    48 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.1.3
    Time taken
    37 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.1.3
    Time taken
    34 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.1.3
    Time taken
    30 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.1.3
    Time taken
    68 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.1.3
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.1.3
    Time taken
    36 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.1.3
    Time taken
    68 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.1.3
    Time taken
    38 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.1.3
    Time taken
    39 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.1.3
    Time taken
    14 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.1.3
    Time taken
    46 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.1.3
    Time taken
    66 s
  • 13 OK

Over time

No change since 30 Sep 2026

As a list (11)
ChangedWorst statusOKNotesWarningsErrors
30 Sep 2026OK13000
4 Sep 2026Error12001
4 Aug 2026OK13000
1 Aug 2026Note12100
9 Jun 2026OK13000
8 Jun 2026Error12001
24 May 2026OK13000
17 May 2026Error12001
15 May 2026OK13000
13 May 2026Error12001
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
379−15.2% down on the 30 days before, the worse directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

9,619 of 26,530

CRAN

370 downloads in the last 30 days

Rank
9,619 of 26,530
Change
−13.2% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

1 downloads in the last 30 days

Rank
19,986 of 30,526
Change
−80% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

8 downloads in the last 30 days

Rank
5,494 of 29,212
Change
−50% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
4
Dependent packages
0
Suggested by
0
Needs (4)
Installing it adds
12 packages, 12.6 MB of source
Of those, need compilation
8
Optional extras (4)
Functions
8
Public exports
6
Lines of R code
388
Median complexity
1.5
Functions (8)
Size and composition

Lines by kind (939)

KindLinesShare
R code38841%
Tests10311%
Documentation44848%

Lines by language

LanguageLinesShare
R49252%
Rd44748%

Languages are counted from file extensions.

Files
41
R functions
8
Complexity
Median
1.5
Mean
2.13
Highest
5
Median lines per function
10
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
8
Calls
8
Unconnected
1
Groups
1
Growth (3 releases)
Total lines by release
904 on 28 Oct 2020939 on 23 Aug 2025
Release changes

The tests ran and coverage was measured.

Lines run by tests
100%
Expressions run by tests
100%
Test cases
8
Exports named in tests
66.7%
Coverage by file (3)
Coverage run
Lines counted
71
Lines the tests ran
71
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
8
Lines of tests
103
Test lines per line of code
0.27
Exports documented
83.3%
Arguments documented
100%
Return value documented
100%
Help pages with examples
14.3%
Examples run in checks
100%
Other documentation
README
Yes, 197 words
Release notes file
Yes
Help pages
14
Lines of documentation
448
DatasetSizeColumns
films6 × 6title, episode_id, opening_crawl, director, producer, release_date
films_peoplePeople in Films162 × 2title, character
films_planetsPlanets in Films33 × 2title, planet
films_vehiclesVehicles in Films104 × 2title, vehicle
people82 × 11name, height, mass, hair_color, skin_color, eye_color and 5 more
pilots43 × 2pilot, vehicle
planets59 × 9name, rotation_period, orbital_period, diameter, climate, gravity and 3 more
schemaStar Wars Data Schema5 × 4endpoint, endpoint_title, endpoint_description, properties
species37 × 10name, classification, designation, average_height, skin_colors, hair_colors and 4 more
vehiclesStarships or Vehicles75 × 14name, type, class, model, manufacturer, cost_in_credits and 8 more

gadenbuie / starwarsdb on github.com

Stars
39+2.6% up on 30 days ago, the better direction
Forks
1
Open issues
0
Last commit
27 Aug 2025
Activity
Commits
46
Open pull requests
0
Tagged releases
4
Latest tagged release
v0.1.3, 27 Aug 2025
In development
Default branch at 0.1.3.9000, ahead of CRAN 0.1.3 (checked 2026-10-25)
Issues closed in
18 days (median)
Pull requests closed in
4 days (median)
Pull requests merged
100%
Created
7 Oct 2020
Licence file reads as
–
Development practices (9)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Docs sourceREADME.Rmd, pkgdown
GitHub Pages site last deployed 2025-08-27
The repository has a site deploy workflow
pkgdown site last built 2025-08-27
Reproducibility and dev environmentdata-raw/
CRAN release processcran-comments.md
Lint, format, editorRStudio project

Method, repository practices

Across gadenbuie

R releases
  • On CRAN
  • Release
VersionReleasedR
0.1.3 current23 Aug 20254.5.1
0.1.23 Nov 20204.0.3
0.1.128 Oct 20204.0.3
Release notes (0.1.3)
  • Small fix in starwarsdb tests to use testthat::local_mocked_bindings().