Skip to content
Back to formatted view

Raw Message

Message-ID: <e40d78ce0905111530h31c550d9ldae4212ebe4e79c9@mail.gmail.com>
Date: 2009-05-11T22:30:55Z
From: Mark
Subject: Set working directory by dragging text file onto R shortcut? [WinXP, unfortunately]

Hi R-helpers,

I must use WinXP at work, and I'm missing a particular feature that's
available in R on my Mac at home...

In WinXP I would like to launch R by dragging and releasing a text
file on top of the R shortcut on my desktop. Then, I would like the
working directory to be automatically set to the location of that text
file.

That's what works in MacOS, but I can't figure out if it's possible in WinXP.

Any ideas? I'd appreciate it...

Thanks, Mark Na

PS What I do now is make a new R shortcut for each project, store that
shortcut in the directory containing that project's datafiles and R
programs (which are in text files), and set the "Start in" value to
that directory...but this has to be set up uniquely for each
project...