Updated R packages and examples