tests/benchmark.R

## 1. Don't test with valgrind
## 2. Test only R (>= 3.0.2) because of that's what knitr requires
if  (getRversion() >= "3.0.2" && Sys.getenv("_R_CHECK_USE_VALGRIND_") == "") {

## 3. Make sure all suggested packages are installed / can be loaded
pkgs <- c("base64enc", "ggplot2", "knitr", "markdown", "microbenchmark",
          "R.devices", "R.rsp")
if (all(unlist(lapply(pkgs, FUN = requireNamespace)))) {
  html <- matrixStats:::benchmark("binCounts")
  print(html)
}

rm(list = "pkgs")

}

Try the matrixStats package in your browser

Any scripts or data that you put into this service are public.

matrixStats documentation built on May 29, 2024, 1:38 a.m.