build_me_w_loader: Run a ME app with data loading screen

Description Usage Arguments Value Preloading data Examples

View source: R/app_build_me_w_loader.R

Description

Function to spawn a shiny app instance for Multimorbidity Explorer app with data loading screen. Optionally data can be preloaded.

Usage

1
2
3
4
5
build_me_w_loader(
  preloaded_path = NULL,
  auto_run = FALSE,
  snp_colors = c("#bdbdbd", "#fecc5c", "#a50f15")
)

Arguments

preloaded_path

File path relative to app that preloaded data is stored. Defaults to NULL.

auto_run

Do you want the app to run immediately or do you want the ui and server components of the app to run later? Defaults to TRUE.

snp_colors

Array of valid css color codes for 0, 1, and 2 copies of the minor allele in network plot.

Value

Shiny app process

Preloading data

If a set of results are going to be repeatedly visited in the app, the data for the results can be preloaded to save time. Once data is preloaded it populates a dropdown menu on the data-loading screen that can be used to select the desired dataset. To do this, the data must be loaded into a path (relative to the main app working directory) provided to run_data_loader() in the preloaded_data_path argument. The neccesary files, relative to preloaded_data_loc/ are:

For further details on the format of these dataset see the getting started article on package website.

Examples

1
2
3
4
## Not run: 
meToolkit::build_me_w_loader()

## End(Not run)

tbilab/meToolkit documentation built on June 23, 2020, 9:55 a.m.