updates to R template