Learn R Programming

phuse (version 0.2.2)

download_script_files: Download files from a repository

Description

download files defined in the input list from a repository.

Usage

download_script_files(fns, tgtDir,
  baseDir = "https://github.com/phuse-org/phuse-scripts/raw/master",
  scriptDir = "data/send/PDS/Xpt")

Arguments

fns

a list containing file names

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"

scriptDir

script directory in the repository

Examples

Run this code
# NOT RUN {
  fns <- c("dm.xpt","ex.xpt")
  dir <- tempdir()
  a <- download_script_files(fns, dir)
# }

Run the code above in your browser using DataLab