Google Script Stop Function In R