diff --git a/README.Rmd b/README.Rmd index ccac99e..726d660 100644 --- a/README.Rmd +++ b/README.Rmd @@ -17,6 +17,9 @@ set.seed(0) A highly scientific and utterly addictive bird point count simulator to test statistical assumptions and to aid survey design. +[![CRAN version](http://www.r-pkg.org/badges/version/bSims)](http://cran.rstudio.com/web/packages/bSims/index.html) +[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/grand-total/bSims)](https://www.rdocumentation.org/packages/bSims/) + [![Linux build status](https://travis-ci.org/psolymos/bSims.svg?branch=master)](https://travis-ci.org/psolymos/bSims) [![codecov](https://codecov.io/gh/psolymos/bSims/branch/master/graph/badge.svg)](https://codecov.io/gh/psolymos/bSims) diff --git a/README.md b/README.md index 3e0f6f2..62da5a5 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,11 @@ A highly scientific and utterly addictive bird point count simulator to test statistical assumptions and to aid survey design. +[![CRAN +version](http://www.r-pkg.org/badges/version/bSims)](http://cran.rstudio.com/web/packages/bSims/index.html) +[![CRAN RStudio mirror +downloads](http://cranlogs.r-pkg.org/badges/grand-total/bSims)](https://www.rdocumentation.org/packages/bSims/) + [![Linux build status](https://travis-ci.org/psolymos/bSims.svg?branch=master)](https://travis-ci.org/psolymos/bSims) [![codecov](https://codecov.io/gh/psolymos/bSims/branch/master/graph/badge.svg)](https://codecov.io/gh/psolymos/bSims) @@ -158,21 +163,23 @@ nc <- 2 # number of cores ## sequential system.time(bb <- b$replicate(B, cl=NULL)) #> user system elapsed -#> 0.40 0.02 0.42 +#> 0.789 0.014 0.829 ## parallel clusters cl <- makeCluster(nc) ## note: loading the package is optional system.time(clusterEvalQ(cl, library(bSims))) #> user system elapsed -#> 0.0 0.0 0.7 +#> 0.001 0.001 1.347 system.time(bb <- b$replicate(B, cl=cl)) #> user system elapsed -#> 0.02 0.00 0.26 +#> 0.012 0.002 0.544 stopCluster(cl) ## parallel forking if (.Platform$OS.type != "windows") { system.time(bb <- b$replicate(B, cl=nc)) } +#> user system elapsed +#> 0.449 0.117 0.583 ```