R scripts for design examples featured on the Descience blog