# data-edu/dataedu architecture

> Architecture diagram of the GitHub repository data-edu/dataedu, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/data-edu/dataedu
- Repository: https://github.com/data-edu/dataedu

## Overview

{dataedu} is an R companion package for *Data Science in Education Using R*. Its main user workflow is to load the package, then access walkthrough datasets by name; users can also install the book’s package set and reuse the package’s theme and color palette. The repository additionally ships datasets in CSV/JSON form under inst/extdata. No source excerpts were provided, so relationships below rely on README statements; internal calls and implementation details are not inferred.

Main entry points: [`R/dataedu-package.R`](https://github.com/data-edu/dataedu/blob/master/R/dataedu-package.R) (dataedu package), [`data`](https://github.com/data-edu/dataedu/tree/master/data) (Walkthrough datasets), [`inst/extdata`](https://github.com/data-edu/dataedu/tree/master/inst/extdata) (CSV and JSON exports), [`R/install_dataedu.R`](https://github.com/data-edu/dataedu/blob/master/R/install_dataedu.R) (Package installer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Walkthrough data"]
  node_package["dataedu package<br/>[dataedu-package.R]"]
  node_datasets[("Walkthrough datasets")]
  node_exported_data["CSV and JSON exports"]
end

subgraph group_setup["Package setup"]
  node_installer["Package installer<br/>[install_dataedu.R]"]
  node_package_catalog["Book package list<br/>[data.R]"]
end

subgraph group_visual["Reusable styling"]
  node_theme["Dataedu theme<br/>[theme_dataedu.R]"]
  node_palette["Dataedu palette<br/>[palette_dataedu.R]"]
end

node_reader(("Package reader"))

node_reader -->|"loads"| node_package
node_reader -->|"accesses by name"| node_datasets
node_reader -->|"downloads formats"| node_exported_data
node_reader -->|"runs"| node_installer
node_reader -->|"lists packages"| node_package_catalog
node_reader -->|"reuses"| node_theme
node_reader -->|"reuses"| node_palette

click node_package "https://github.com/data-edu/dataedu/blob/master/R/dataedu-package.R"
click node_datasets "https://github.com/data-edu/dataedu/tree/master/data"
click node_exported_data "https://github.com/data-edu/dataedu/tree/master/inst/extdata"
click node_installer "https://github.com/data-edu/dataedu/blob/master/R/install_dataedu.R"
click node_package_catalog "https://github.com/data-edu/dataedu/blob/master/R/data.R"
click node_theme "https://github.com/data-edu/dataedu/blob/master/R/theme_dataedu.R"
click node_palette "https://github.com/data-edu/dataedu/blob/master/R/palette_dataedu.R"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_package,node_datasets,node_exported_data toneBlue
class node_installer,node_package_catalog toneAmber
class node_theme,node_palette toneMint
class node_reader toneIndigo
```

## Components

### Walkthrough data

- [dataedu package](https://github.com/data-edu/dataedu/blob/master/R/dataedu-package.R): `R/dataedu-package.R`
- [Walkthrough datasets](https://github.com/data-edu/dataedu/tree/master/data): `data`
- [CSV and JSON exports](https://github.com/data-edu/dataedu/tree/master/inst/extdata): `inst/extdata`

### Package setup

- [Package installer](https://github.com/data-edu/dataedu/blob/master/R/install_dataedu.R): `R/install_dataedu.R`
- [Book package list](https://github.com/data-edu/dataedu/blob/master/R/data.R): `R/data.R`

### Reusable styling

- [Dataedu theme](https://github.com/data-edu/dataedu/blob/master/R/theme_dataedu.R): `R/theme_dataedu.R`
- [Dataedu palette](https://github.com/data-edu/dataedu/blob/master/R/palette_dataedu.R): `R/palette_dataedu.R`

### Other components

- **Package reader**

## Connections

- Package reader → dataedu package: loads (evidence: `README.md`)
- Package reader → Walkthrough datasets: accesses by name (evidence: `README.md`)
- Package reader → CSV and JSON exports: downloads formats (evidence: `README.md`)
- Package reader → Package installer: runs (evidence: `README.md`)
- Package reader → Book package list: lists packages (evidence: `README.md`)
- Package reader → Dataedu theme: reuses (evidence: `README.md`)
- Package reader → Dataedu palette: reuses (evidence: `README.md`)
