get.remote.sha: Get Remote SHA

Description Usage Arguments Value See Also Examples

View source: R/get.remote.sha.R

Description

Look up SHA reference code on GitHub.

Usage

1
get.remote.sha(owner, repo, ref, seven = TRUE)

Arguments

owner

repository owner.

repo

repository name.

ref

reference.

seven

whether to truncate SHA reference code to seven characters.

Value

SHA reference code as a string.

See Also

taf.bootstrap uses get.remote.sha to determine whether it is necessary to remove or download files, via clean.library, clean.software, and download.github.

TAF-package gives an overview of the package.

Examples

1
2
3
4
5
6
## Not run: 
get.remote.sha("ices-tools-prod", "icesAdvice", "master")
get.remote.sha("ices-tools-prod", "icesAdvice", "1.3-0")
get.remote.sha("ices-tools-prod", "icesAdvice", "1.3-0", seven=FALSE)

## End(Not run)

TAF documentation built on April 7, 2021, 5:06 p.m.