Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jsta/schemer

Visualize SQLite structure with R :neckbeard:
https://github.com/jsta/schemer

Last synced: about 1 month ago
JSON representation

Visualize SQLite structure with R :neckbeard:

Awesome Lists containing this project

README

        

---
output: github_document
always_allow_html: yes
---

```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "images"
)
```

# schemeR

[![Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](http://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip)

The goal of schemeR is to visualize SQLite databases.

## Installation

You can install schemeR from github with:

```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("jsta/schemeR")
```

## Usage

This is a basic example:

### SQLite

```{r example, results = 'hide'}
library(schemeR)

db <- dplyr::lahman_sqlite()
res <- schemeR::render_sqlite(db)
schemeR::export_svg(res, "images/sqlite_example.png")

```

![](images/sqlite_example.png)

### data.frame

```{r message=FALSE, results='hide'}

df <- data.frame(
"name" = 1:4,
"people" = c("bob", "jim", "beatrice", "ann"))

res <- schemeR::render_df(df)
schemeR::export_svg(res, "images/df_example.png")

```

![](images/df_example.png)

## References

http://graphviz.org/content/datastruct

https://rich-iannone.github.io/DiagrammeR/graphviz_and_mermaid.html

https://github.com/rich-iannone/DiagrammeR/issues/133