fixed syntax in R activity