benchgit: Benchmarking different git branches

Description Usage Arguments Value Author(s) Examples

View source: R/benchgit.R

Description

This function allows the benchmarking of R functions in different git branches.

Usage

1
benchgit(FUN, packagePath = ".", branches, replications = 100)

Arguments

FUN

expression, function to run.

packagePath

character, path to the package dir (which have to be git controlled)

branches

character, name of the branches which should be compared.

replications

numeric, how many times the FUN should be evaluated.

Value

an ordered data.frame where each row represents a branch.

Author(s)

Sebastian Gibb

Examples

1
2
3
4
5
6
7
8
library("benchgit")

## Not run: 
 x <- runif(100)
 benchgit(my_fun(x), packagePath="~/mypackage",
 branches=c("master", "foo", "bar"))

## End(Not run)

sgibb/benchgit documentation built on May 29, 2019, 8:04 p.m.