Edits to R tutorial