

def _dispatch_r_osx(self, cmd):
    cmd = self.clean_cmd(cmd)
    cmd = self.escape_dquote(cmd)
    args = ['osascript']
    args.extend(['-e', (('tell application "R" to cmd "' + cmd) + '"')])
    subprocess.Popen(args)

dataset/ETHPy150Open randy3k/SendTextPlus/textsender.py TextSender._dispatch_r_osx/original