installGithubCommit: Install commit

Description Usage Arguments Details Examples

Description

Install a specific commit of a package, possibly under a temporary name.

Usage

1
2
installGithubCommit(repo, ref = "master", temporary = TRUE,
  trace = TRUE, ...)

Arguments

repo

Repository address in the format username/repo. See the documentation of devtools::install_github.

ref

Desired git reference. See the documentation of devtools::install_github.

temporary

Should the package be installed under a newname, i.e. adding Tempo to the name of the package?

trace

should the execution of the function be trace?

...

additional arguments to be passed to devtools::install

Details

This function is essentially a copy of the function install_remote from the package remotes, with one additional argument, temporary, that enable to install the package under an other name. This can be convinient to track a change between package versions.

Examples

1
2
3
4
5
## Not run: 
commit <- readGithubCommit("bozenne/BuyseTest", seq.commit = 1)[1,"commits"]
installGithubCommit("bozenne/BuyseTest", ref = commit)

## End(Not run)

bozenne/butils.base documentation built on May 13, 2019, 1:40 a.m.