assuming R scripts directory is in path