All .R scripts updated