init_cfg: Initialize configuration for phuse

Description Usage Arguments Value Author(s) Examples

View source: R/init_cfg.R

Description

read script metadata file in the repository and merged it with a local script metadata file if it exists.

Usage

1
init_cfg(cfg)

Arguments

cfg

a list containing script metadata information

Value

a list containing the merged configuration

Author(s)

Hanming Tu

Examples

1
2
3
4
5
6
  a <- "https://github.com/phuse-org/phuse-scripts/raw/master"
  b <- "development/R/scripts"
  c <- "Draw_Dist2_R.yml"
  f1 <- paste(a,b,c, sep = '/')
  f2 <- read_yml(f1)
  r1 <- init_cfg(f2)

phuse documentation built on March 26, 2020, 6:31 p.m.