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 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.
rmarkdown::draft
. The template uses knitr::knit_expand
to dynamically create code chunks containing figures, captions and subcaptions based on the data frame passed on as a parameter.officedown
and officer
enable the automatic numbering of figures and tables, the insertion of corresponding table of contents, as well as various other helpers and post-processing features.devEMF
package.ggplot2
plotting functions.ggplot2
theme, theme_rub
.flextable
theme.ggplot2
.df_example
, that illustrates how we used this package in 2022 to create 67 reports with a total of over 5,000 unique figures. All values in the dataset are fake and algorithmically generated, the other columns, though, are mostly identical to the confidential production dataset.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 )
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)
RUBer
.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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.