download_script_files: Download files from a repository

Description Usage Arguments Author(s) Examples

View source: R/download_script_files.R

Description

download files defined in the input list from a repository.

Usage

1
2
3
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

Author(s)

Hanming Tu

Examples

1
2
3
4
5
6
## Not run: 
  fns <- c("dm.xpt","ex.xpt")
  dir <- tempdir()
  a <- download_script_files(fns, dir)

## End(Not run)

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