Learn R Programming

phuse (version 0.2.2)

download_fns: 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"

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 <- extract_fns(f2)
  f4 <- download_fns(f3)
# }

Run the code above in your browser using DataLab