Revise syntax in R code block