get_inputs: Get Inputs from Input Sources

Description Usage Arguments Value Author(s) Examples

View source: R/get_inputs.R

Description

Get inputs from interactive session (shiny webpage), command line or script metadata.

Usage

1
get_inputs(fn = NULL, input = NULL, cmd = NULL)

Arguments

fn

a file name or URL pointing to script metadata file

input

the input parameter from shiny webpage

cmd

the cmmandArgs

Value

a list of input values provided for the script

Author(s)

Hanming Tu

Examples

1
2
3
4
5
  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 = '/')
  r1 <- get_inputs(f1)

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