Fixed extra parenthesis in .R files