download_fns: Download files from a repository

View source: R/download_fns.R

download_fnsR Documentation

Download files from a repository

Description

download files defined in the input data frame.

Usage

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

## 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)

TuCai/phuse documentation built on Sept. 2, 2022, 5:17 a.m.