Skip to content

Instantly share code, notes, and snippets.

@helske
Last active November 6, 2015 20:23
Show Gist options
  • Save helske/e9b40a50eb2d088530e7 to your computer and use it in GitHub Desktop.
Save helske/e9b40a50eb2d088530e7 to your computer and use it in GitHub Desktop.
Using Rocker for package testing with SAN/UBSAN
#!/bin/bash
# This is basically a dummy version of http://dirk.eddelbuettel.com/blog/2015/01/18/
# I could not get the above working when the package which I was testing (seqHMM) was not on CRAN (so install-deps did not work)
# start docker and run /bin/bash # with winpty thing use proper path instead of $(pwd)
docker -run -ti -v $(pwd):/mnt rocker/r-devel-ubsan-clang /bin/bash
# Use littler's install.r script for installing dependencies
install.r Rcpp RcppArmadillo nloptr numDeriv igraph TraMineR
# if GSL is needed run this first
apt-get install -y gsl-bin libgsl0-dev
# and check seqHMM
check.r --setwd /mnt seqHMM_1.0.1.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment