Skip to contents

This function gives a quick overview of the versions of R and the operating system as well as the versions of nflverse/ffverse packages and their dependencies. It's primarily designed to help you get a quick idea of what's going on when you're helping someone else debug a problem.

Usage

report(
  pkg = c("nflreadr", "nflfastR", "nflseedR", "nfl4th", "nflplotR"),
  recursive = TRUE
)

Arguments

pkg

a character vector naming installed packages, or NULL (the default) meaning all nflverse packages. The function checks internally if all packages are installed and informs if that is not the case.

recursive

a logical indicating whether dependencies of pkg and their dependencies (and so on) should be included. Can also be a character vector listing the types of dependencies, a subset of c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances"). Character string "all" is shorthand for that vector, character string "most" for the same vector without "Enhances", character string "strong" (default) for the first three elements of that vector.

Examples

# \donttest{
report(recursive = FALSE)
#>  You've asked for the packages nflseedR, nfl4th, and nflplotR which are not installed. 
#> They are skipped.
#> ── System Info ─────────────────────────────────────────────────────────────────
#> • R version 4.1.2 (2021-11-01)   • Running under: Ubuntu 20.04.3 LTS
#> ── nflverse Packages ───────────────────────────────────────────────────────────
#> • nflreadr (1.1.2     )
#> • nflfastR (4.3.0.9005)
report(pkg = "nflreadr", recursive = TRUE)
#> ── System Info ─────────────────────────────────────────────────────────────────
#> • R version 4.1.2 (2021-11-01)   • Running under: Ubuntu 20.04.3 LTS
#> ── nflverse Packages ───────────────────────────────────────────────────────────
#> • nflreadr (1.1.2)
#> ── nflverse Dependencies ───────────────────────────────────────────────────────
#> • RApiSerialize (0.1.0)  • curl       (4.3.2)   • qs         (0.25.2)  
#> • Rcpp          (1.0.7)  • data.table (1.14.2)  • rappdirs   (0.3.3)   
#> • RcppParallel  (5.1.4)  • fastmap    (1.1.0)   • rlang      (0.4.12)  
#> • cachem        (1.0.6)  • memoise    (2.0.1)   • stringfish (0.15.5)  
#> ────────────────────────────────────────────────────────────────────────────────
# }