usage of Pig & R scripts