我试图用下面的命令从R内部调用Cygwin:
shell("cd C:\\cygwin\\bin & bash --login -i testfile2.txt", intern = T)在Cygwin中,我尝试调用另一个程序(教堂)。调用位于testfile2.txt中,如下所示:
/cygdrive/c/cygwin/home/$USER/jschurch/bher /cygdrive/c/cygwin/home/$USER/foo.church > /cygdrive/c/cygwin/home/$USER/output.txt但是,我得到以下错误消息:
> shell("@echo on & cd C:\\cygwin\\bin & bash --login -i testfile2.txt", intern = T)
[1] "bash: cannot set terminal process group (-1): Inappropriate ioctl for device"
[2] "bash: no job control in this shell"
[3] "Unhandled exception:"
[4] " Condition components:"
[5] " 1. &error"
[6] " 2. &who: expander"
[7] " 3. &message: \"cannot locate library in library-path\""
[8] " 4. &library-resolution:"
[9] " library: (scheme-tools srfi-compat :1)"
[10] " files: (\"./scheme-tools/srfi-compat/%3a1/main.vicare.sls\" \"./scheme-tools/srfi-compat/%3a1/main.vicare.ss\" \"./scheme-tools/srfi-compat/%3a1/main.vicare.scm\" \"./scheme-tools/srfi-compat/%3a1/main.sls\" \"./scheme-tools/srfi-compat/%3a1/main.ss\" \"./scheme-tools/srfi-compat/%3a1/main.scm\" \"./scheme-tools/srfi-compat/%3a1.vicare.sls\" \"./scheme-tools/srfi-compat/%3a1.vicare.ss\" \"./scheme-tools/srfi-compat/%3a1.vicare.scm\" \"./scheme-tools/srfi-compat/%3a1.sls\" \"./scheme-tools/srfi-compat/%3a1.ss\" \"./scheme-tools/srfi-compat/%3a1.scm\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1/main.vicare.sls\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1/main.vicare.ss\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1/main.vicare.scm\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1/main.sls\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1/main.ss\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1/main.scm\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1.vicare.sls\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1.vicare.ss\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1.vicare.scm\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1.sls\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1.ss\" \"/usr/local/lib/vicare/scheme-tools/srfi-compat/%3a1.scm\")"谁能给我解释一下,如何处理这个问题?
谢谢,大卫
发布于 2016-06-18 01:14:18
使用命令c:\cygwin\bin\run.exe从windows启动cygwin进程。它应该会解决这个问题。
run [ -p path ] command [ -wait ] arguments
使用-p path,您可以将路径添加到path环境变量。
https://stackoverflow.com/questions/16610711
复制相似问题