* using the default PATH, Rscript is not accessible, even though (due to brokenness). This goes for both shells.
* I cannot set PATH inside a script, forcing me to set it by hand. (both shells)
* after setting the PATH to point only to R/bin, Rscript works on Cygwin (but 'ls' doesn't!), but not on MinGW.
* MinGW cannot run inside Emacs. But I can run SSH from MinGW.
* I can use Cygwin inside Emacs (but only if I didn't start an R process). However, I cannot run SSH.
---
UPDATE: I create a symbolic link, Rscript.lnk, and added it to C:/cygwin/bin (a.k.a. /usr/bin)
Now I can run Rscript from anywhere.
* I cannot set PATH inside a script, forcing me to set it by hand. (both shells)
* after setting the PATH to point only to R/bin, Rscript works on Cygwin (but 'ls' doesn't!), but not on MinGW.
* MinGW cannot run inside Emacs. But I can run SSH from MinGW.
* I can use Cygwin inside Emacs (but only if I didn't start an R process). However, I cannot run SSH.
---
UPDATE: I create a symbolic link, Rscript.lnk, and added it to C:/cygwin/bin (a.k.a. /usr/bin)
Now I can run Rscript from anywhere.
(no subject)
Date: 2010-03-16 02:53 am (UTC)(no subject)
Date: 2010-03-16 03:57 am (UTC)um, ok, by creating a ~/.bashrc with:
export PATH=/cygdrive/c/Progra~1/R/R-2.9.0/bin
the PATH variable is changed accordingly. But the files in it are still inaccessible, and with a bizarre message:
$ Rscript
sh.exe": Rscript: command not found
(no subject)
Date: 2010-03-16 05:43 am (UTC)(no subject)
Date: 2010-03-16 05:48 am (UTC)(no subject)
Date: 2010-03-16 05:52 am (UTC)Oh, one other idea. Is Rscript a script? If so, and $PATH doesn't point in the right place, then maybe "Command not found" is not saying that Rscript isn't found but that a command in the Rscript script is not found. What happens when you type "which Rscript" at the prompt?
(no subject)
Date: 2010-03-16 06:28 am (UTC)I'm not gonna try "which which"!
Cygwin:
which is wrong!
(no subject)
Date: 2010-03-16 07:14 am (UTC)http://cygwin.com/cygwin-ug-net/using-utils.html#cygpath
no reason it has to be progra~1, i remember it being progra~4 back in the day.
(no subject)
Date: 2010-03-16 07:18 am (UTC)Something like cygpath is already used to translate the Windows PATH into the PATH variable in Cygwin.