make_erd: Create Entity Relationship Diagram

View source: R/make_erd.R

make_erdR Documentation

Create Entity Relationship Diagram

Description

Create an Entity-Relationship Diagram (ERD) from a data model and save it to disk in SVG format. Requires that the dm, DiagrammeR, V8, and DiagrammeRsvg packages are available.

Usage

make_erd(dm, path = tempfile(fileext = ".svg"), overwrite = FALSE)

Arguments

dm

'dm' object. Data model.

path

'character' string. File path to write the ERD.

overwrite

'logical' flag. Whether to overwrite an existing file.

Value

Invisibly returns the file path.

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

See Also

make_dm function for creating a data model for the inldata package.


inldata documentation built on Sept. 12, 2024, 9:34 a.m.