Fixing a few bugs in recently added R scripts...