You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting an error about an object being a bench_mark/list and not a data.frame. The actual error message:
#> Error: Argument 1 must be a data frame or a named atomic vector, not a bench_mark/list
Here's a reproducible example although I'm getting the same error even when I try the package examples, so I imagine it has to be something related to my configuration (or maybe a recently introduced bug?).
## set seed
set.seed(20180812)
## generate datad<-data.frame(x= rnorm(1000), y=1:1000)
## create data frame with duplicate rowsd<-d[c(1:1000, sample(1:1000, 500, replace=TRUE)), ]
row.names(d) <-NULL## bench markm<-bench::mark(uq= unique(d), dup=d[!duplicated(d), ])
## view resultsm#> # A tibble: 2 x 10#> expression min mean median max `itr/sec` mem_alloc n_gc n_itr#> <chr> <bch:> <bch> <bch:> <bch:> <dbl> <bch:byt> <dbl> <int>#> 1 uq 1.76ms 2.2ms 2.03ms 4.01ms 455. 111KB 26 138#> 2 dup 1.71ms 2.5ms 2.11ms 8.25ms 399. 93KB 12 148#> # ... with 1 more variable: total_time <bch:tm>## plotggplot2::autoplot(m)
#> Error: Argument 1 must be a data frame or a named atomic vector, not a bench_mark/list
Created on 2018-08-12 by the reprex package (v0.2.0.9000).
And here's the more detailed traceback:
#> 12: stop(list(message = "Argument 1 must be a data frame or a named atomic vector, not a bench_mark/list", #> call = NULL, cppstack = NULL))#> 11: bind_rows_(x, .id)#> 10: .f(.x[[i]], ...)#> 9: map(nest_types$dataframe %||% list(), dplyr::bind_rows, .id = .id)#> 8: unnest.data.frame(object)#> 7: NextMethod(.Generic)#> 6: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))#> 5: suppressWarnings(NextMethod(.Generic))#> 4: unnest.bench_mark(object)#> 3: tidyr::unnest(object)#> 2: autoplot.bench_mark(m)#> 1: ggplot2::autoplot(m)
The text was updated successfully, but these errors were encountered:
mkearney
changed the title
Autoplot error - must be data frame...not bench_mark/list
autoplot: Error - must be data frame...not bench_mark/list
Aug 12, 2018
I'm getting an error about an object being a
bench_mark/list
and not adata.frame
. The actual error message:#> Error: Argument 1 must be a data frame or a named atomic vector, not a bench_mark/list
Here's a reproducible example although I'm getting the same error even when I try the package examples, so I imagine it has to be something related to my configuration (or maybe a recently introduced bug?).
Created on 2018-08-12 by the reprex package (v0.2.0.9000).
And here's the more detailed traceback:
And session info:
The text was updated successfully, but these errors were encountered: