benchmarks_file: Run benchmark for R code file across R implementation and...

Description Usage Arguments Examples

View source: R/benchmark.R

Description

Run benchmark for R code file across R implementation and platform.

Usage

1
2
3
benchmarks_file(r_file, platforms = c("debian", "ubuntu"),
  r_implementations = c("gnu-r", "mro"), volumes = NULL,
  pull_image = FALSE, times = 3, ...)

Arguments

r_file

A file of R code

platforms

List of platforms

r_implementations

List of R implementations

volumes

Volume mapping from host to container. Passed to run_code

pull_image

If set to TRUE, the needed docker image will be pulled first

times

How many times the code will be run. Passed to microbenchmark

...

Parameters for microbenchmark

Examples

1
2
3
4
5
## Not run: 
file_path <- system.file('extdata/test.R', package = 'altRnative')
benchmarks_file(file_path, times = 3)

## End(Not run)

ismailsunni/altRnative documentation built on April 1, 2020, 2:22 a.m.