Second commit.  R-code finished.