Skip to content

Commit

Permalink
badges
Browse files Browse the repository at this point in the history
  • Loading branch information
psolymos committed Dec 26, 2019
1 parent 255af33 commit 5d5e69e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
```

0 comments on commit 5d5e69e

Please sign in to comment.