Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark file seems to not work (for me) #12

Open
talgalili opened this issue Nov 9, 2018 · 2 comments
Open

Benchmark file seems to not work (for me) #12

talgalili opened this issue Nov 9, 2018 · 2 comments

Comments

@talgalili
Copy link

When running this file:
https://github.com/dirmeier/datastructures/blob/master/benchmark/benchmark_hashmap.R
I get:

> microbenchmark(
+     hash = f1(10000),
+     env  = f2(10000)
+ )
 Show Traceback
 
 Rerun with Debug
 Error in initialize(value, ...) : 
  cannot use object of class “character” in new():  class “hashmap” does not extend that class 

My session info:

> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X Yosemite 10.10.5

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] microbenchmark_1.4-6 datastructures_0.2.7 Rcpp_0.12.14         tableHTML_1.1.0      httr_1.3.1          
 [6] ggplot2_3.0.0        lubridate_1.7.1      stringr_1.3.1        bindrcpp_0.2         dplyr_0.7.4         
[11] rtweet_0.6.8        

loaded via a namespace (and not attached):
 [1] pillar_1.3.0     plyr_1.8.4       bindr_0.1.1      tools_3.3.3      digest_0.6.13    lattice_0.20-34 
 [7] nlme_3.1-131     jsonlite_1.5     tibble_1.4.2     gtable_0.2.0     mgcv_1.8-17      pkgconfig_2.0.2 
[13] rlang_0.2.2      Matrix_1.2-8     cli_1.0.0        rstudioapi_0.7   curl_3.2         yaml_2.1.16     
[19] withr_2.1.2      grid_3.3.3       glue_1.2.0       R6_2.2.2         fansi_0.3.0      purrr_0.2.4     
[25] magrittr_1.5     codetools_0.2-15 htmltools_0.3.6  scales_0.5.0     assertthat_0.2.0 colorspace_1.3-2
[31] labeling_0.3     utf8_1.1.3       stringi_1.2.4    openssl_1.0.2    lazyeval_0.2.1   munsell_0.5.0   
[37] crayon_1.3.4    
> 
@dirmeier
Copy link
Owner

Yes, sorry, I haven't updated it in a long time (since 0.01 or so). Sorry

@talgalili
Copy link
Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants