[rkward-devel] On windows binary

Prasenjit Kapat kapatp at gmail.com
Thu May 20 02:21:08 UTC 2010


Hi Thomas,

On Tue, May 18, 2010 at 10:36 AM, Thomas Friedrichsmeier
<thomas.friedrichsmeier at 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




More information about the Rkward-devel mailing list