knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

parsenetwork

Lifecycle: experimental

The goal of parsenetwork is to ...

Installation

You can install the released version of parsenetwork from CRAN with:

install.packages("parsenetwork")

Or install the development version from GitHub with:

install.packages("remotes")
remotes::install_github("celehs/parsenetwork")

Usage

Build the database

library(parsenetwork)
# required steps
data2db("edge", "path/to/db", "path/to/datafile")
data2db("dict_cui", "path/to/db", "path/to/datafile")
data2db("dict_codified", "path/to/db", "path/to/datafile")
# optional steps
data2db("synonyms", "path/to/db", "path/to/datafile")
data2db("rollup", "path/to/db", "path/to/datafile")
data2db("table1", "path/to/db", "path/to/datafile", title = "the title of the data")

Run app

This is a basic example which shows you how to run the parsenetwork app. Remember you need to get access to the data and save it to your local computer. In order to guarantee some dependencies are loaded, you must use library(parsenetwork) beforehand, instead of directly running parsenetwork::run_app().

library(parsenetwork)
run_app(db_path = "path/to/db")

See the getting started guide to learn how to use parsenetwork.



chenh2017/parsenetwork documentation built on Sept. 24, 2022, 3:52 a.m.