download_fns: Download files from a repository

Description Usage Arguments Author(s) Examples

View source: R/download_fns.R

Description

download files defined in the input data frame.

Usage

1
2
download_fns(df, tgtDir = NULL,
  baseDir = "https://github.com/phuse-org/phuse-scripts/raw/master")

Arguments

df

a data frame containing file names produced from extract_fns

tgtDir

target directory for storing the files

baseDir

base directory in the repository including the repo URL. Default to "https://github.com/phuse-org/phuse-scripts/raw/master"

Author(s)

Hanming Tu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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 <- extract_fns(f2)
  f4 <- download_fns(f3)

## End(Not run)

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