knit_print.bench_mark: Custom printing function for bench_mark objects in knitr...

Description Usage Arguments Details

View source: R/mark.R

Description

By default data columns ('result', 'memory', 'time', 'gc') are omitted when printing in knitr. If you would like to include these columns set the knitr chunk option 'bench.all_columns = TRUE'.

Usage

1

Arguments

x

An R object to be printed

...

Additional arguments passed to the S3 method. Currently ignored, except two optional arguments options and inline; see the references below.

options

A list of knitr chunk options set in the currently evaluated chunk.

Details

You can set bench.all_columns = TRUE to show all columns of the bench mark object.

1
2
3
4
5
```{r bench.all_columns = TRUE}
bench::mark(
  subset(mtcars, cyl == 3),
  mtcars[mtcars$cyl == 3, ])
```

bench documentation built on March 26, 2020, 6:32 p.m.