Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 通过自动机执行Shell脚本_R_Macos_Shell_Automator - Fatal编程技术网

R 通过自动机执行Shell脚本

R 通过自动机执行Shell脚本,r,macos,shell,automator,R,Macos,Shell,Automator,通过Terminal/Totalterminal或iTerm,此脚本运行良好: cd~/go/to/dir/&R-e“shinny::runApp(“/go/to/dir”,launch.browser=TRUE)” 但在通过Automator的应用程序中,第二部分不起作用 在Automator中:运行Shell脚本。 其中是“正常”终端和自动机使用的终端的区别。 在/bin/bash中,r是否在自动机的路径上?如果没有,则用完整路径替换r,如/usr/local/bin/r(由哪个r显示)。运

通过Terminal/Totalterminal或iTerm,此脚本运行良好:

cd~/go/to/dir/&R-e“shinny::runApp(“/go/to/dir”,launch.browser=TRUE)”

但在通过Automator的应用程序中,第二部分不起作用

在Automator中:运行Shell脚本。 其中是“正常”终端和自动机使用的终端的区别。
在/bin/bash中,
r
是否在自动机的路径上?如果没有,则用完整路径替换
r
,如
/usr/local/bin/r
(由
哪个r
显示)。

运行shell脚本与automator中的终端不同,或者不太使用automator,但在apple脚本中,如果您在规范的命令行之外执行某些操作(例如使用r),则必须运行
告诉应用程序“终端”激活do shell脚本“…”
近乎完美;)但到目前为止,applescript在以下方面存在问题:
R-e'shinny::runApp(“/Users/1/2/3/”,launch.browser=TRUE)”
“R-e'shinny::runApp(“/Users/1/2/3/”,launch.browser=TRUE)”标记有问题。是的,我尝试过,但总是失败。我错过了正确的选项“\”发布你的applescript,你已经嵌入到applescript自动操作中,我们可以帮助处理引用的表单,等等。