Learn R Programming

phuse (version 0.2.2)

download_script: Download files defined in script metadata

Description

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

Usage

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

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab