Skip to content

Default unit = "relative" not accepted (anymore) in microbenchmark #34

@tappek

Description

@tappek

This used to work
microbenchmark::microbenchmark(TRUE, FALSE, unit = "relative")
but in version 1.4.9 (and maybe the previous version) it errors with:

Error in match.arg(unit, values) : 
  'arg' should be one of “nanoseconds”, “ns”, “microseconds”, “us”, “milliseconds”, “ms”, “seconds”, “s”, “secs”, “time”, “t”, “frequency”, “f”, “hz”, “khz”, “mhz”, “eps”

Could #20 and the associated commit 6533560 be the culprit?

Passing unit = "relative" directly to summary still works.

mb <- microbenchmark::microbenchmark(TRUE, FALSE)
summary(mb, unit = "relative")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions