sparse_ghap: Create a sparse ghap repository

Description Usage Arguments Value Examples

Description

Create a ghap repository that fetches only specified subdirectories and file types

Usage

1
2
sparse_ghap(repo_url, repo, dirs, create = TRUE, append = TRUE,
  remote = "origin", branch = "master")

Arguments

repo_url

character, repository url path

repo

character, path on local disk that repository is cloned to

dirs

character, vector of repository subdirectories to fetch

create

boolean, create a new git clone?, Default: TRUE

append

boolean, append new lines to sparse-checkout file, Default: TRUE

remote

character, alias of the remote, Default: 'origin'

branch

character, alias of the branch, Default: 'master'

Value

nothing

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
repo_url='https://git.ghap.io/stash/scm/hbgd/allcrosssectional.git'
repo='HBGD/allcrosssectional-sparse'
dirs=sprintf('Main/%s',c('jobs/*.sas','adam/*.rtf','sdtm/*.rtf')
#create new sparse clone
sparse_ghap(repo_url,repo,dirs)

#update sparse-checkout definitions (appends to current list)
sparse_ghap(repo_url,repo,dirs=c('Main/jobs/*.log'),create=FALSE)

## End(Not run)

HBGDki/ghap documentation built on May 6, 2019, 9:45 p.m.