Package {pressfreedom}


Title: Press Freedom Dashboard
Version: 0.2.0
Date: 2026-08-25
Description: A Shiny dashboard for exploring Reporters Without Borders (RWB) Press Freedom Index data from 2002 to the present. Combines RWB scores with United Nations M49 geographic classifications to enable comparisons across countries, regions, and time.
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 8.0.0
Depends: R (≥ 3.5)
Imports: pressfreedom.data (≥ 0.3.0), shiny, bslib, dplyr, plotly, ggplot2, htmlwidgets, RColorBrewer, countrycode, tidyr, purrr
Suggests: pkgdown, testthat (≥ 3.0.0)
Config/testthat/edition: 3
URL: https://github.com/petzi53/pressfreedom, https://www.peter-baumgartner.net/pressfreedom/
BugReports: https://github.com/petzi53/pressfreedom/issues
NeedsCompilation: no
Packaged: 2026-08-26 11:19:53 UTC; petzi
Author: Peter Baumgartner ORCID iD [aut, cre]
Maintainer: Peter Baumgartner <petzi53@gmail.com>
Repository: CRAN
Date/Publication: 2026-09-08 13:40:02 UTC

Launch the Press Freedom Dashboard

Description

Opens the interactive Shiny dashboard for exploring Reporters Without Borders (RWB) Press Freedom Index data. The dashboard lets users compare country scores and rankings over time using line charts and bump charts.

Usage

run_app(...)

Arguments

...

Arguments passed to shiny::runApp(), such as port or launch.browser.

Details

The dashboard has four tabs:

A read-only version of this same dashboard is also deployed at https://petzi53.shinyapps.io/pressfreedom/, useful for quick, casual exploration without installing anything. Running it locally via run_app() avoids that deployment's usage limits and is recommended for repeated or heavier use.

This package does not bundle its own data; run_app() loads rwb_standardized from the companion pressfreedom.data package at startup. To work with that data directly (outside the dashboard) rather than through the app, load pressfreedom.data and consult its documentation and vignettes at https://www.peter-baumgartner.net/pressfreedom.data/, e.g.:

library(pressfreedom.data)
head(rwb_standardized)
?rwb_standardized

Value

Called for its side effect (launching the app). Returns invisibly.

See Also

rwb_standardized for the underlying dataset's documentation.

Examples

if (interactive()) {
  # Launch with defaults
  run_app()

  # Launch without opening a browser automatically, e.g. inside an
  # IDE's viewer pane or a remote session
  run_app(launch.browser = FALSE)

  # Pin a specific port, e.g. to satisfy a firewall rule
  run_app(port = 8080)
}

mirror server hosted at Truenetwork, Russian Federation.