improvements to R training