[19273] in s-news-athena
RE: [S] Object Explorer vs. Object Browser
daemon@ATHENA.MIT.EDU (David Smith)
Mon Sep 20 17:55:29 1999
From: dsmith@mathsoft.co.uk (David Smith)
To: "'S-News mail list'" <s-news@wubios.wustl.edu>
Date: Mon, 20 Sep 1999 22:47:54 +0100
Message-Id: <000101bf03b1$cc22f140$459c7ac1@bundaberg.mathsoft.co.uk>
Mime-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
In-Reply-To: <Pine.GSO.4.10.9909201425330.6155-100000@ev.nssl.noaa.gov>
Having worked with S+2000 since its beta days, I've found the best way to
manage projects is using the new Workspace feature, and have migrated from
the old set-S_PROJ-in-a-shortcut way.
Although it's possible to modify the search path using the Object Explorer,
changes to the search path aren't saved in the Object Explorer *unless* you
filter on the database added *and* the "Archive Database Position Only"
option is unchecked. (Both options from the Advanced context menu on a
folder in the left pane.) For this reason I generally don't use the OE to
manage projects.
Instead, I create a new workspace from "File | Workspace | New" (letting it
create the _Data for me if it's a new project), and then immediately save
the workspace (in case I forget later; I'm a forgetful guy). If I need a
specialised Object Explorer, or want some script files opened, I'll create
those too and save the workspace again. Then when starting S-PLUS, the
workspace file is usually at the bottom of the File | Workspace | Open menu,
and I'll switch to it that way. Otherwise, I'll just browse to the project
folder and open the workspace in the usual way. This puts the workspace
_Data directory in position 1 (and unfortunately leaves the default _Data in
position 2, but I've become accustomed to that now).
If you still want to create shortcut icons, you can put the workspace file
directly on the command line, for example:
"D:\Program Files\sp2000\cmd\SPLUS.exe" "D:\temp\beta carotene.sws"
on the Target line. This works because the .sws files are just S scripts to
close all documents and then open the relevant files. You can also
double-click on a .sws file in Windows Explorer and choose S-PLUS in the
"open with" dialog, and even associate S-PLUS with .sws files (which isn't
done by default). This isn't (yet) officially recommended MathSoft
procedure, but it works for me. You can still use the S_PROJ technique,
which sets the search path correctly, but then you'll have to open any saved
object browsers, scripts, etc. by hand.
In summary, the Workspace feature isn't perfect by far, but I've found it to
be useful in practice. If anyone on the list has any comments or
suggestions about how the Workspace facility should work, please email me.
I'll summarise to the list, and make sure the recommendations are passed on
to the development team in Seattle.
# Dave
--
David M Smith (dsmith@mathsoft.co.uk)
Mathsoft International, Bagshot, UK
Tel +44 01276 452299 x212
Fax +44 01276 451224
> -----Original Message-----
> From: owner-org_splus@statsci.com
> [mailto:owner-org_splus@statsci.com]On
> Behalf Of Kim Elmore
> Sent: 20 September 1999 20:35
> To: S-News mail list
> Subject: [S] Object Explorer vs. Object Browser
>
>
>
> Having just received S+ 2000, I've been trying to come
> up to speed
> on the differences between the Object Explorer (OE) and the old Object
> Browser (OB).
>
> I've learned how to create folders within the new OE that look
> like the folders in the old OB, such as DataFrame, Functions, Vectors,
> Matrix, etc. Previously, in an attempt at project control, I
> had saved an
> old OB to an .sbf file and had used it to start S+ 4.5, along
> with setting
> the S_PROJ= command line parameter to the appropriate directory.
>
> I can't seem to get a neat way to do that with the OE,
> likely out
> of ignorance. I tried the User's Guide technique of creating
> a shortcut
> to SPLUS.exe and setting the command line option S_PROJ= to the
> appropriate _Data directory. That works, sort of. Tha approriate
> directory is attached, but the OE that is brought up contains a single
> Data folder with all mu data objects crammed in there,
> instead of parsed
> out into folders.
>
> To address this, I manually created the folders I
> wanted with the
> characteristics I wanted, saved the OE and restarted. This didn't do
> what I'd wanted. I also tried starting S+ with the OE itself, which
> also didn't work.
>
> I've come up with a way to do what I want, by autoloading a
> workspace file, but it seems to be a kludge and still not
> quite right.
> How best can I set up a desktop shortcut that, when invoked,
> starts up S+
> 2000 in the proper directory, with the proper data bases
> attached and with
> an OE that has things mapped out in the way I've described?
>
> Thanks for any insights!
>
> Kim Elmore, [N5OP, PP ASMEL/Glider 2232456]
> "All of Meteorology is divided into three parts: Yes, No and
> Maybe. The
> greatest of these is Maybe." -- The original Latin appears to
> be garbled.
>
> --------------------------------------------------------------
> ---------
> This message was distributed by s-news@wubios.wustl.edu. To
> unsubscribe
> send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
> message: unsubscribe s-news
>
>
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news