23 Commits
Author SHA1 Message Date
christian a2663b2e90 explain where vignettes are available 2021-08-11 23:40:32 +02:00
christian ab0fa33172 fix typo in readme 2021-08-11 23:36:40 +02:00
christian 83cdcc279b fix formatting in readme 2021-08-11 23:33:02 +02:00
christian 1e9c9ba651 fix documentation and improve readme 2021-08-11 23:29:37 +02:00
JosuaKugler efddf043e3 Merge branch 'master' into alternative-vignettes 2021-08-11 18:16:27 +02:00
JosuaKugler c374e8cd8e add meine beteiligung as input 2021-08-11 17:11:56 +02:00
JosuaKugler 412b349007 Merge branch 'master' of https://git.flavigny.de/christian/hateimparlament 2021-08-11 17:03:55 +02:00
JosuaKugler 534b34d02e improve abschlussbericht 2021-08-11 16:48:31 +02:00
Leon Burgard 1f68306fbd update abschlussbericht 2021-08-11 16:42:07 +02:00
JosuaKugler b7166d1578 add documentation for read_from_csv_or_fetch 2021-08-11 16:04:56 +02:00
christian 896ba1b3b0 update readme for new vignette building workflow 2021-08-11 09:18:17 +02:00
christian ecb5677703 add bare read_from_csv_or_fetch 2021-08-11 09:15:26 +02:00
christian 9d456bfa60 Merge pull request 'add masterdata from bundestag.de and use this for genderequality' (#16) from genderequality-alternative into master 2021-08-11 08:30:27 +02:00
christian 62fe9d497d Merge branch 'master' into genderequality-alternative 2021-08-10 23:28:25 +02:00
christian 29a7974941 change title of vignettes, and add install instructions for vignettes 2021-08-10 22:47:07 +02:00
christian e31ccabf18 change title in genderequality 2021-08-10 22:46:41 +02:00
christian 622fd4db07 Merge branch 'master' into genderequality-alternative 2021-08-10 22:03:37 +02:00
christian 6aa80534f8 add checks to read/write csv and refactor 2021-08-10 21:51:00 +02:00
christian 605e5e976a Merge branch 'master' into genderequality-alternative 2021-08-10 21:27:10 +02:00
christian 8e691e5d11 update package meta data 2021-08-10 21:24:39 +02:00
christian 6b1f8a64b2 add installation directives 2021-08-10 21:14:52 +02:00
christian 7e304d12bb fix formatting in readme and improve analysis section 2021-08-10 20:58:29 +02:00
christian 864c0016cc update readme 2021-08-10 20:54:37 +02:00
15 changed files with 297 additions and 136 deletions
+15 -7
View File
@@ -1,13 +1,21 @@
Package: hateimparlament Package: hateimparlament
Title: Protocolanalysis of German Bundestag Title: Recordanalysis Of Bundestag
Version: 0.0.0.9000 Version: 0.0.0.9000
Authors@R: Authors@R: c(
person(given = "First", person(given = "Leon",
family = "Last", family = "Burgard",
role = c("aut")),
person(given = "Josua",
family = "Kugler",
role = c("aut")),
person(given = "Christian",
family = "Merten",
role = c("aut", "cre"), role = c("aut", "cre"),
email = "first.last@example.com", email = "christian@merten.dev"))
comment = c(ORCID = "YOUR-ORCID-ID")) Description: Downloads, parses and analyses parliamentary records of the 19th legislative
Description: Downloads, parses and analyses protocols of the current German parliament (Bundestag). period of the German parliament (Bundestag).
URL: https://git.flavigny.de/christian/hateimparlament
BugReports: https://git.flavigny.de/christian/hateimparlament/issues
License: GPL (>= 3) License: GPL (>= 3)
Encoding: UTF-8 Encoding: UTF-8
LazyData: true LazyData: true
+1
View File
@@ -7,6 +7,7 @@ export(join_speaker)
export(party_colors) export(party_colors)
export(read_all) export(read_all)
export(read_from_csv) export(read_from_csv)
export(read_from_csv_or_fetch)
export(repair) export(repair)
export(word_usage_by_date) export(word_usage_by_date)
export(write_to_csv) export(write_to_csv)
-7
View File
@@ -61,10 +61,3 @@ fetch_all <- function(download_dir="inst/records/", create=FALSE) {
# if successful, set progressbar to 100% # if successful, set progressbar to 100%
setTimerProgressBar(pb, 250) setTimerProgressBar(pb, 250)
} }
stop_dir_not_creatable <- function(cond) {
# currently this has call: dir.create(download_dir)
# do we want to change this to fetch_all(...) ?
cond$message <- "Directory does not exist and can't be created. Probably because the path is not writeable."
stop(cond)
}
+7
View File
@@ -19,6 +19,13 @@ check_directory <- function(path, create=F) {
} }
} }
stop_dir_not_creatable <- function(cond) {
# currently this has call: dir.create(download_dir)
# do we want to change this to fetch_all(...) ?
cond$message <- "Directory does not exist and can't be created. Probably because the path is not writeable."
stop(cond)
}
# appends a file seperator at end of path if needed # appends a file seperator at end of path if needed
make_directory_path <- function(path) { make_directory_path <- function(path) {
if (!str_ends(path, .Platform$file.sep)) str_c(path, .Platform$file.sep) if (!str_ends(path, .Platform$file.sep)) str_c(path, .Platform$file.sep)
+31 -1
View File
@@ -233,6 +233,11 @@ parse_speakerlist <- function(speakerliste_xml) {
#' #'
#' @export #' @export
write_to_csv <- function(tables, path="inst/csv/", create=F) { write_to_csv <- function(tables, path="inst/csv/", create=F) {
is_valid_res(tables)
stopifnot("path must be of type character" = is.character(path))
stopifnot("create must be of type logical" = is.logical(create))
path <- make_directory_path(path)
check_directory(path, create) check_directory(path, create)
write.table(tables$speaker, str_c(path, "speaker.csv")) write.table(tables$speaker, str_c(path, "speaker.csv"))
write.table(tables$speeches, str_c(path, "speeches.csv")) write.table(tables$speeches, str_c(path, "speeches.csv"))
@@ -250,6 +255,9 @@ write_to_csv <- function(tables, path="inst/csv/", create=F) {
#' #'
#' @export #' @export
read_from_csv <- function(path="inst/csv/") { read_from_csv <- function(path="inst/csv/") {
stopifnot("path must be of type character" = is.character(path))
path <- make_directory_path(path)
list(speaker = read.table(str_c(path, "speaker.csv")) %>% list(speaker = read.table(str_c(path, "speaker.csv")) %>%
tibble() %>% tibble() %>%
mutate(id = as.character(id)), mutate(id = as.character(id)),
@@ -259,5 +267,27 @@ read_from_csv <- function(path="inst/csv/") {
date = as.Date(date)), date = as.Date(date)),
talks = tibble %$% read.table(str_c(path, "talks.csv")), talks = tibble %$% read.table(str_c(path, "talks.csv")),
comments = tibble %$% read.table(str_c(path, "comments.csv")), comments = tibble %$% read.table(str_c(path, "comments.csv")),
applause = tibble %$% read.table(str_c(path, "applause.csv"))) applause = tibble %$% read.table(str_c(path, "applause.csv"))) -> res
is_valid_res(res)
res
}
#' Read records from csv or fetch
#'
#' @param path base directory where csv files are expected under path/csv
#' and possibly records fetched and stored under path/records
#'
#' @export
read_from_csv_or_fetch <- function(path="inst/") {
path <- make_directory_path(path)
res <- tryCatch(read_from_csv(str_c(path, "csv/")),
error = function(c) NULL)
if (!is.null(res)) return(res)
fetch_all(str_c(path, "records/"), create=T)
read_all(str_c(path, "records/")) %>%
repair() ->
res
write_to_csv(res, str_c(path, "csv/"), create=T)
res
} }
+164 -91
View File
@@ -1,19 +1,174 @@
# How to develop # Description
R package to analyze parliamentary records of the 19th legislative period of the Bundestag,
the German parliament.
# Installation
Using the `remotes` package, this is easily installed via:
```r
remotes::install_url("https://git.flavigny.de/christian/hateimparlament/archive/master.zip")
```
If you want to build the vignettes, pass `build_vignettes = TRUE`. This takes a long time and
fails sometimes, if bundestag.de times out, since
in the beginning the necessary records are neither fetched nor parsed.
## Install with vignettes
An alternative for building
the vignettes is to clone the repository and build the vignettes manually, e.g. on Linux
```
git clone https://git.flavigny.de/christian/hateimparlament
cd hateimparlament
```
Then open a `R` shell and do
```r
devtools::load_all() # load package
devtools::wd() # set working directory
```
Then fetch all records, read them and write the parsed tibbles to csv files.
```r
fetch_all(create = TRUE)
read_all() %>% repair() -> res
write_to_csv(res, create = TRUE)
```
Now you can install the package with vignettes by using
```r
devtools::install(build_vignettes = TRUE)
```
This makes all vignettes available via `browseVignettes()`.
# Features
The package mainly supplies 4 functionalities:
## Download records
To analyze records, they need to be downloaded. This is done with `fetch_all`:
```r
fetch_all("records/", create = TRUE) # path to directory where records should be stored
```
This downloads all parliamentary records and stores them as `.xml` files in the given directory.
## Parse records
To use the records in R, they are converted to `tibble`s with
```r
res_raw <- read_all("records/") # path to directory where records are stored
```
`res_raw` is a named list with 5 `tibble`s:
### Speaker
Table of all speakers of this legislative period.
Fields:
- `id`: Unique speaker id
- `prename`: Prename
- `lastname`: Surname
- `fraction`: Name of fraction if the speaker is member of parliament.
- `title`: Title, e.g. ,,Prof''
- `role_short`: Short name of role, e.g. ,,Bundeskanzlerin''
- `role_long`: Long name of role
### Speeches
Table of all speeches given during this legislative period.
Fields:
- `id`: Unique speech id
- `speaker`: Principal speaker (the person standing behind the lectern during the speech).
- `date`: Date of session
### Talks
Within a speech, there can be multiple talks by different people. Mostly this is the main speech
by the principal speaker, but usually there are questions by other members of parliament or
order calls by the president of the Bundestag.
Fields:
- `speech_id`: Speech in which this talk has been given
- `speaker`: Person that actually talks
- `content`: Spoken content
### Comments
These are the interjections that appear during the speeches.
Fields:
- `speech_id`: The speech that was interrupted
- `on_speaker`: The speaker who was interrupted
- `fraction`: The fraction of the commenter
- `commenter`: The person who interrupted the speech
- `comment`: The content of the comment
### Applause
Table containing all the rounds of applause that happened during this legislative period.
Fields:
- `speech_id`: Speech during which was applauded
- `on_speaker`: Speaker who was applauded
And then logical fields `CDU_CSU`, `SPD`, `FDP`, `DIE_LINKE`, `BUENDNIS_90_DIE_GRUENEN`, `AfD`
for every fraction in the Bundestag, signifying whether this fraction applauded.
## Repair records
The parliamentary records usually contain some major and minor formatting issues. These are
mostly resolved by using
```
res <- repair(res_raw)
```
By passing `lookup_speaker = TRUE`, even commenters in
`res_raw$comments` are matched with their respective speaker id.
## Analysis
Also some functions are provided to analyze the parliamentary records and draw some plots:
- `bar_plot_fractions`
- `find_word`
- `join_speaker`
- `word_usage_by_date`
See their usage with the `?` operator.
In the vignettes you can find different analyses of the protocols, for example:
- "Who talks the most?"
- "Which party gives the most speeches?"
- "Which party comments the most on which parties?"
- "When are which topics discussed the most?"
- ...
# Contributing
Developing works the easiest with `devtools`:
```r ```r
# everything works with devtools (loads some other packages too)
library(devtools) library(devtools)
```
# reload all package functions When you changed something or added some functionality, you can reload all package functions with
```r
load_all() load_all()
```
If you want to avoid reading all records every time you start a new R session, you can
write your parsed tibbles to CSV files:
#write to CSV files to speed up loading ```
tables <- read_all() tables <- read_all()
tables <- repair(tables) tables <- repair(tables)
write_to_csv(tables) write_to_csv(tables, "path/to/csv/")
``` ```
We NEVER use source(...), etc.! Also NEVER use library(...). Then later you can use
But to add new packages (as dependency), use: ```r
res <- read_from_csv("path/to/csv/")
```
to load your stored tibbles very fast.
NEVER use source(...), etc.! Also NEVER use library(...).
To add new packages (as dependency), use:
```r ```r
use_package("my-good-old-package") use_package("my-good-old-package")
``` ```
@@ -27,87 +182,5 @@ document()
Build vignettes Build vignettes
```r ```r
rmarkdown::render("vignettes/bla.Rmd") rmarkdown::render("vignettes/test.Rmd")
``` ```
# Download
Before parsing, fetch.R must be run to download all protocols.
```r
fetch_all("../inst/records/") # path to directory where records should be stored
```
# Parsing
## tables
parse.R parses all downloaded logs and creates 5 tibbles.
repair.R then cleans up the errors in these tibbles.
```r
read_all("../inst/records/") %>% repair()
```
### Speaker
structure: `id` , `first_name` , `last_name` , `fraction` , `title` , `role_short`, `role_long`.
Obtained from the `<speaker list>` entry at the end of the transcripts.
### Speeches
Structure: `id` , `speaker`
The speeches `id` is specified in the protocol and is unique.A speech is a `<speech>` entry in the session history. A speech always has a main speaker (the one standing at the front of the lectern).
Within a speech, there can be different speech entries:
- Comments: Applause, interjections, etc.
- Speeches: Typically mainly the main speaker, but also interjections.
These are stored in the talks, comments and applause tables when parsing.
### Talks
Structure: `speech_id` , `speaker` , `content`.
These are the actual talk entries that appear within _speeches_.
- `speech_id`: the speech in which the contribution appears.
- `speaker`: The speaker of the speech entry.
- `content`: The content of the speech.
###comments
These are the interjections that appear during the speeches.
They have the following structure:
- `speech_id`: The speech that was interrupted.
- `on_speaker`: The speaker who was interrupted.
- `fraction`
- `commenter`: The person who interrupted the speech.
- `comment`: The content of the comment.
###applause
The logical table shows which party applauded for which speaker with explicit speech and which did not.
structure: `speech_id`, `on_speaker`, `CDU_CSU`, `SPD`, `FDP`, `DIE_LINKE`, `BUENDNIS_90_DIE_GRUENEN`, `AfD`
# Analysis
analysis.R provides some functions to analyze the "Plenarprotokolle" and to create plots.
In the vignettes you can find different analyses of the protocols, for example:
- "Who talks the most?"
- "Which party gives the most speeches?"
- "Which party comments the most on which parties?"
- "When are which topics discussed the most?"
- ...
Binary file not shown.
+21 -9
View File
@@ -1,16 +1,28 @@
\documentclass{article} \documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[top=2.5cm, bottom=2.5cm]{geometry} \usepackage[top=2.5cm, bottom=2.5cm]{geometry}
\title{Abschlussbericht}
\author{Leon Burgard, Josua Kugler, Christian Merten}
\begin{document} \begin{document}
\maketitle
\section*{Projektbeschreibung} \section*{Projektbeschreibung}
Wir haben zunächst die Plenarprotokolle der 19. Wahlperiode von der Website automatisiert herunterladen lassen. Unser Projekt \glqq Plenarprotokolle \grqq stellt mittels dem Paket \verb|hateimparlament| Funktionen zur Analyse der Plenarprotokolle der 19. Wahlperiode des deutschen Bundestages zur Verfügung. Diese Funktionen können in vier Bereiche unterteilt werden:
Als nächstes haben wir die Daten in ein für die Analyse sinnvolles Format gebracht, d.h. 5 Tibbles und Fehler ausgebessert. \begin{enumerate}
Daraufhin konnten wir mit der Analyse beginnen. \item Herunterladen der Protokolle
Insbesondere \item Konvertierung der XML-Dateien in Tibbles
\section*{Werkzeuge aus der Vorlesung} \item Reparieren von Fehlern
Wir haben, da es hauptsächlich um Datenanalyse ging, sehr viel mit tidyverse gearbeitet. \item Analyse
Ganz zu Beginn haben wir fürs fetchen der Protokolle rvest verwendet. \end{enumerate}
Für die Visualisierung haben wir ggplot2 sowie vignettes genutzt. Das Herunterladen der Protokolle gelingt über die Funktion
\verb|fetch_all()|, welche auf die Website des deutschen Bundestages zugreift und die XML-Dateien einzeln herunterlädt. Hierzu haben wir das Paket rvest verwendet, welches wir bereits in der Vorlesung kennengelernt haben.
Durch \verb|read_all()| werden diese heruntergeladenen XML-Dateien in eine benannte Liste mit fünf Tibbles (speaker, speeches, talks, comments und applause) geschrieben. Allerdings benötigt man diese Tibbles immer wieder und es ist ziemlich zeitaufwändig die XML-Dateien immer wieder neu in Tibbles einzulesen, deshalb haben wir zusätzlich eine Funkion \verb|write_to_csv()| geschrieben, die die fertigen Tibbles als CSV-Dateien speichert. Diese können dann sehr schnell durch \verb|read_from_csv()| eingelesen werden, wodurch viel Zeit gesparrt wird.
Da diese Protokolle kleine Fehler enthalten, müssen diese noch im nächsten Schritt bereinigt werden, was mit \verb|repair()| funktioniert. Hierbei wird das Paket tidyverse viel benutzt, welches insgesamt sehr viel in unserem Projekt beansprucht wird, da wir uns mit der Datenanalyse beschäftigen.
In \verb|analyse.R| stellen wir noch einige Hilfsfunktionen bereit, die es dem Nutzer vereinfachen die Daten auszuwerten. Beispielsweise steht schon eine Funktion zur Verfügung, die ein Balkendiagramm erstellt, bei dem jede Partei des Bundestages sperat ausgewertet wird. Hierbei wird das Paket \verb|ggplot2| verwendet.
Im letzten Schritt unseres Projekts haben wir Fragestellungen festgelegt, die wir mithilfe von unserem Paket beantworten wollten. Die Daten und unsere Ergebnisse visualisierten wir mithilfe von \verb|ggplot2| und \verb|tidyverse| in Vignetten.
\section*{Organisation des Teams} \section*{Organisation des Teams}
Während der ersten Projektphase wurden hauptsächlich die Funktionen zum Herunterladen der Dateien und Konvertieren und Reparieren der Tibbles geschrieben. Dies geschah größtenteils in Einzelarbeit, wobei hierbei die gegenseitige Kontrolle und Nachfragen die Funktionen optimiert haben. Zwischendurch wurde immer mal wieder zu einer HeiConf-Konferenz einberufen, um sich selbst den Zwischenstand klar zu machen und die Herausforderungen für die nächsten Wochen zu besprechen.
In der zweiten Hälfte des Projekts kümmerten wir uns dann um die Analyse der Daten und stellten unsere Ergebnisse in Vignetten da und erzeugten Dokumentationen für alle Funktionen, die für den Nutzer wichtig sind.
\newpage
\section*{Meine Beteiligung} \section*{Meine Beteiligung}
\input{meine_beteiligung.tex}
\end{document} \end{document}
+18 -3
View File
@@ -4,15 +4,30 @@
\name{hateimparlament-package} \name{hateimparlament-package}
\alias{hateimparlament} \alias{hateimparlament}
\alias{hateimparlament-package} \alias{hateimparlament-package}
\title{hateimparlament: Protocolanalysis of German Bundestag} \title{hateimparlament: Recordanalysis Of Bundestag}
\description{ \description{
Downloads, parses and analyses protocols of the current German parliament (Bundestag). Downloads, parses and analyses parliamentary records of the 19th legislative
period of the German parliament (Bundestag).
} }
\details{ \details{
hateimparlament ist ein großartiges Paket! hateimparlament ist ein großartiges Paket!
}
\seealso{
Useful links:
\itemize{
\item \url{https://git.flavigny.de/christian/hateimparlament}
\item Report bugs at \url{https://git.flavigny.de/christian/hateimparlament/issues}
}
} }
\author{ \author{
\strong{Maintainer}: First Last \email{first.last@example.com} (\href{https://orcid.org/YOUR-ORCID-ID}{ORCID}) \strong{Maintainer}: Christian Merten \email{christian@merten.dev}
Authors:
\itemize{
\item Leon Burgard
\item Josua Kugler
}
} }
\keyword{internal} \keyword{internal}
+15
View File
@@ -0,0 +1,15 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parse.R
\name{read_from_csv_or_fetch}
\alias{read_from_csv_or_fetch}
\title{Read records from csv or fetch}
\usage{
read_from_csv_or_fetch(path = "inst/")
}
\arguments{
\item{path}{base directory where csv files are expected under path/csv
and possibly records fetched and stored under path/records}
}
\description{
Read records from csv or fetch
}
+5 -4
View File
@@ -1,8 +1,8 @@
--- ---
title: "explicittopic" title: "Analysis of covered topics"
output: rmarkdown::html_vignette output: rmarkdown::html_vignette
vignette: > vignette: >
%\VignetteIndexEntry{explicittopic} %\VignetteIndexEntry{Analysis of covered topics}
%\VignetteEngine{knitr::rmarkdown} %\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8} %\VignetteEncoding{UTF-8}
--- ---
@@ -34,9 +34,10 @@ read_all("../inst/records/") %>% repair() -> res
``` ```
We also used `repair` to fix a bunch of formatting issues in the records. We also used `repair` to fix a bunch of formatting issues in the records.
For development purposes, we load the tables from csv files. For development purposes, we only fetch records if they are not already
stored as csv files:
```{r} ```{r}
res <- read_from_csv('../inst/csv/') res <- read_from_csv_or_fetch('../inst/')
``` ```
## Analysis ## Analysis
+7 -4
View File
@@ -1,8 +1,8 @@
--- ---
title: "genderequality" title: "Differences in gender"
output: rmarkdown::html_vignette output: rmarkdown::html_vignette
vignette: > vignette: >
%\VignetteIndexEntry{genderequality} %\VignetteIndexEntry{Differences in gender}
%\VignetteEngine{knitr::rmarkdown} %\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8} %\VignetteEncoding{UTF-8}
--- ---
@@ -35,10 +35,13 @@ read_all("../records/") %>% repair() -> res
``` ```
We also used `repair` to fix a bunch of formatting issues in the records. We also used `repair` to fix a bunch of formatting issues in the records.
For development purposes, we load the tables from csv files. For development purposes, we only fetch records if they are not already
stored as csv files:
```{r} ```{r}
res <- read_from_csv('../inst/csv/') res <- read_from_csv_or_fetch('../inst/')
``` ```
and unpack our tibbles and unpack our tibbles
```{r} ```{r}
comments <- res$comments comments <- res$comments
+5 -4
View File
@@ -1,8 +1,8 @@
--- ---
title: "generalquestions" title: "General questions"
output: rmarkdown::html_vignette output: rmarkdown::html_vignette
vignette: > vignette: >
%\VignetteIndexEntry{generalquestions} %\VignetteIndexEntry{General questions}
%\VignetteEngine{knitr::rmarkdown} %\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8} %\VignetteEncoding{UTF-8}
--- ---
@@ -34,9 +34,10 @@ read_all("../inst/records/") %>% repair() -> res
``` ```
We also used `repair` to fix a bunch of formatting issues in the records. We also used `repair` to fix a bunch of formatting issues in the records.
For development purposes, we load the tables from csv files. For development purposes, we only fetch records if they are not already
stored as csv files:
```{r} ```{r}
res <- read_from_csv('../inst/csv/') res <- read_from_csv_or_fetch('../inst/')
``` ```
## Analysis ## Analysis
+3 -2
View File
@@ -38,9 +38,10 @@ talks <- res$talks
We also used `repair` to fix a bunch of formatting issues in the records and unpacked We also used `repair` to fix a bunch of formatting issues in the records and unpacked
the result into more descriptive variables. the result into more descriptive variables.
For development purposes, we load the tables from csv files. For development purposes, we only fetch records if they are not already
stored as csv files:
```{r} ```{r}
tables <- read_from_csv('../inst/csv/') tables <- read_from_csv_or_fetch('../inst/')
comments <- tables$comments comments <- tables$comments
speeches <- tables$speeches speeches <- tables$speeches
+5 -4
View File
@@ -1,8 +1,8 @@
--- ---
title: "interaction" title: "Interaction between fractions"
output: rmarkdown::html_vignette output: rmarkdown::html_vignette
vignette: > vignette: >
%\VignetteIndexEntry{interaction} %\VignetteIndexEntry{Interaction between fractions}
%\VignetteEngine{knitr::rmarkdown} %\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8} %\VignetteEncoding{UTF-8}
--- ---
@@ -34,9 +34,10 @@ read_all("../inst/records/") %>% repair() -> res
``` ```
We also used `repair` to fix a bunch of formatting issues in the records. We also used `repair` to fix a bunch of formatting issues in the records.
For development purposes, we load the tables from csv files. For development purposes, we only fetch records if they are not already
stored as csv files:
```{r} ```{r}
res <- read_from_csv('../inst/csv/') res <- read_from_csv_or_fetch('../inst/')
``` ```
## Analysis ## Analysis