download_script: Download files defined in script metadata

Description Usage Arguments Value Author(s) Examples

View source: R/download_script.R

Description

download scripts, data or any file defined in the script metadata.

Usage

1
download_script(cfg, wkDir = "workdir", source_lib = TRUE)

Arguments

cfg

a list containing script metadata

wkDir

work directory where the files will be downloaded to

source_lib

whether to source the library defined for the scrpt in the metadata

Value

target directory name

Author(s)

Hanming Tu

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
  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)
  f3 <- download_script(f2)

## End(Not run)

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