[6234] in s-news-athena
Splus for Windows
daemon@ATHENA.MIT.EDU (Song Qian)
Sat Jan 21 10:46:45 1995
From: Song Qian <song@isds.Duke.EDU>
To: s-news@utstat.toronto.edu
Date: Sat, 21 Jan 1995 10:28:21 -0500 (EST)
> Daniel Heitjan writes:
>
> DH> In Splus for Unix, I create separate directories with .Data
> DH> subdirectories for each project. All code, raw data files
> DH> and Splus objects related to the project are then stored
> DH> in this area. It's a simple method and, I presume, commonly
> DH> used.
> DH>
> DH> In evaluating Splus for Windows, I'm having trouble
> DH> figuring out how to implement an analogous strategy.
> DH> The documentation hasn't been much help. I'd appreciate
> DH> any suggestions. Thanks.
------------------------------------------------------------------------
> Don McKenzie wrote:
> I found this annoying also. What I wound up doing was creating separate
> icons in the Splus program group for each project, i.e. setting the
> properties path variable differently, then creating a separate _data
> directory in each location. Creating the .First() function in each
> was tricky, because of all the escape sequences necessary in path
> names in the attach() function. I started with a generic .First()
> and used source() to place it in the various _data directories, wherein
> it could be slightly modified.
>
> No doubt clever people could automate all this.
>
> dmck
>
> _______________________________________________________________________
>
An easy way to avoid .First() function is to change the "Working
Directory" of the icon to where you want. Here is how: copy the original
Splus icon, then hightlight the new icon. Go to File-Properties, you will
see three fields you can modify with. "Description" should be the name of
the icon you want, "Command line" should be left unchanged, and "Working
Directory" should be the directory where you want to keep the seperate
".Data" directory. For example, if you want to store you data in c:\work,
you should creat .Data under c:\work, and the "Working Directory" is
"c:\work".
Song Qian
School of the Environment
Duke University
ps. when you first run Splus from the new icon, the .Data directory should
be empty.