Hi Thomas, On Tue, May 18, 2010 at 10:36 AM, Thomas Friedrichsmeier <thomas.friedrichsme...@ruhr-uni-bochum.de> wrote: > Hi, > > a small update: > > Thomas Friedrichsmeier schrieb: >> I guess the most elegant way may be to set the working directory in the >> RKWard.lnk . I believe it's possible to use path-variables such as >> %USERPROFILE%, there, but again, well have to test this. > > I tested this on Windows XP, and it works, there. I had to adjust > rkward.bat for this to work, though: > > SET R_BINARY=%~dsp0\..\..\R\bin\R.exe > > "%~dsp0" means drive letter and "short" path of current script. Since > the working directory is no longer KDE\bin, using the "pure" relative > path would fail. > > @Prasenjit, could you give this a short test esp. on Windows 7 (where > some of the default paths have chnaged)?
I don't see any difference by adding "%~dsp0" to R_BINARY on Windows 7 as well as Win server 2007. Once RKWard starts the getwd() is still C:/......./KDE/bin. -- Prasenjit ------------------------------------------------------------------------------ _______________________________________________ RKWard-devel mailing list RKWard-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rkward-devel