knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

options(tibble.print_min = 5, tibble.print_max = 5)

RUBer

R-CMD-check Lifecycle: experimental CRAN status

Overview

RUBer is an R package created for parameterized reporting according to the requirements at the Ruhr-Universität Bochum (RUB). So far, the package was primarily used for the eigth (2018-19) and ninth (2019-21) reporting cycle for teaching (Lehrberichterstattung). The package provides a large example dataset containing fake values, an R Markdown template in the RUB corporate design, preconfigured ggplot2 plotting functions, custom themes for ggplot2 and flextable, as well as functions making the RUB corporate design colors available.

Main features

Installation

Install the development version from GitHub with:

# If package "remotes" is not installed, install it first:
# install.packages("remotes")

# Install RUBer from Github
remotes::install_github(
  repo = "RichardMeyer-Eppler/RUBer",
  build_vignettes = TRUE
  )

Usage

library(tibble)
library(RUBer)

# RUBer comes with two example data sets with generated data

# df_report contains meta data about each of the 68 reports
df_report

# df_example contains the data required to dynamically create all figures
df_example

# This generates a Word report using df_report and df_example
render_report(quiet = TRUE)

Guiding design principles

  1. Output format for the paramterized reporting is Microsoft Word, so that the reports can be shared and edited as widely as possible.
  2. The generated reports adhere to the RUB corporate design and are ready for printing as is, with no further adjustments to layout or content required.
  3. As far as possible, the data manipulation is done independently of all the reporting steps. The idea is that the data passed to the R Markdown template can come from any source, not just R. While the data wrangling for the eigth (2018-19) and ninth (2019-21) reporting cycle for teaching was done in R, this is not a requirement. If there is a need to create or alter datasets using Microsoft Excel, it is possible to use these datasets as basis for all reporting functions of RUBer.

Project background

Every three years, the teaching and program quality of all degree programs at the University of Bochum is assessed (Lehrberichterstattung). The university administration assists this process by providing data reports that combine descriptive higher education statistics with survey data. The University of Bochum regularly collects survey data in the study entry phase (Studieneingangsbefragung), mid-study (Studienverlaufsbefragung) and for its graduates (AbsolventInnenbefragung, collected through the nationwide Graduate Survey Cooperation Project (KOAB)). Previously, for the data reports, these rich data sources were analyzed and visualized by hand. RUBer automates this process, creating large numbers of print-ready reports in Microsoft Word.



RichardMeyer-Eppler/RUBer documentation built on June 2, 2022, 7:24 p.m.