working through an R-based example to verify things work.