Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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:
- Host: GitHub
- URL: https://github.com/jsta/schemer
- Owner: jsta
- Created: 2016-11-10T20:38:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-13T20:13:48.000Z (about 8 years ago)
- Last Synced: 2024-06-11T17:09:05.358Z (7 months ago)
- Language: R
- Homepage:
- Size: 171 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
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