Description Usage Arguments Value Examples
Create a ghap repository that fetches only specified subdirectories and file types
1 2 | sparse_ghap(repo_url, repo, dirs, create = TRUE, append = TRUE,
remote = "origin", branch = "master")
|
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' |
nothing
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.