We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f0f3b6 commit 24fadbfCopy full SHA for 24fadbf
lib/node_modules/@stdlib/math/base/special/erf/benchmark/r/benchmark.R
@@ -99,7 +99,7 @@ main <- function() {
99
results <- microbenchmark::microbenchmark( erf( (2.0*runif(1L)) - 1.0 ), times = iterations );
100
101
# Sum all the raw timing results to get a total "elapsed" time:
102
- elapsed <- sum( results[[ time ]] );
+ elapsed <- sum( results[[ 'time' ]] );
103
104
# Convert the elapsed time from nanoseconds to seconds:
105
elapsed <- elapsed / 1.0e9;
0 commit comments