s-news
[Top] [All Lists]

[S] summary: problem with starting directory and prefs

To: S-news <s-news@wubios.wustl.edu>
Subject: [S] summary: problem with starting directory and prefs
From: "Joseph C. Davis" <jdavis@pdf.com>
Date: Fri, 29 Oct 1999 18:11:14 -0500
Organization: PDF Solutions
Reply-to: jdavis@pdf.com
Sender: owner-s-news@wubios.wustl.edu
Hello Snews,

Many thanks to those people who responded to my query. Since I neglected to put
it in before, I am indeed using SP2000.

The root of the problem is that when I followed the procedure given below,
Splus reads the preference information before it goes to the start directory.
The easiest solution (given by John Wallace and Prof. Ripley) is to put
S_PROJ="." in the shortcut target and put the desired directory in the
'start-in' box.

Others suggested putting in the whole directory path in the target, as well as
directly specifying the prefs and data directories (nice flexibility there),
but the '.' one is easiest.

I have included the original question and all of the replied below.

Thank you very much for your help!

best regards,
jcd



Michael Prager wrote:

> At 10/28/99 at 05:46 PM, you wrote:
>
> >Hello out there!
> >
> >I'm having a bit of trouble with my new computer and Splus. Since I
> >didn't install Splus, I didn't get to specify the 'default' directory.
> >So, I RTFM'd and V&R and did the following:
> >1) created a shortcut
> >2) edited the 'start in' box to show the directory where I wanted it to
> >start
> >3) checked the 'set S_PROJ' button in the Splus preferences
> >4) restarted Splus
> >
> >My problem is that the UI preferences get read from teh original
> >'default' directory and not the directory specified by the 'start-in'.
> >Thus, all modifications to the UI are lost when I restart.
>
> I am assuming you are using Windows 9x or NT.  If you are comfortable
> editing the Registry, use regedit, search for "S_PROJ" and edit it to your
> desired directory.  You may have to search more than once.  That will reset
> the default.
>
> You could also change S_PROJ in the Windows shortcuts set up.  This info is
> in Chapter 19 of the SPlus 2000 Programmers Guide.  Be aware that in Wind
> 9x you can't use long filenames in shortcuts so you will need to use the
> 8.3 names.
>
> Hope this helps.
>
> --
> Michael Prager      <Mike.Prager@noaa.gov>
> NOAA Beaufort Laboratory
> Beaufort, North Carolina  28516  USA
>
> Standard Disclaimers: Opinions expressed here are personal
> and are not otherwise represented.  Any use of tradenames
> in the above does not constitute a NOAA endorsement.

Greg Snow wrote:

> On Thu, 28 Oct 1999, Joseph C. Davis wrote:
>
> >
> > Hello out there!
> >
> > I'm having a bit of trouble with my new computer and Splus. Since I
> > didn't install Splus, I didn't get to specify the 'default' directory.
> > So, I RTFM'd and V&R and did the following:
>
> I am assuming S-PLUS 2000, since you didn't specify
>
> > 1) created a shortcut
> > 2) edited the 'start in' box to show the directory where I wanted it to
> > start
> > 3) checked the 'set S_PROJ' button in the Splus preferences
> > 4) restarted Splus
>
> The problem with that method, is that it loads in all the UI preferences
> before it knows that you want to use the start-in directory.  Forget that
> method, below is the better/preferred method
>
> > My problem is that the UI preferences get read from teh original
> > 'default' directory and not the directory specified by the 'start-in'.
> > Thus, all modifications to the UI are lost when I restart.
>
> > I'm sure that this is a stupid user problem, but I just want the stupid
> > thing to start up in *my* default directory, not the system's default!
>
> It's not you, the documentation for this is not very clear (and to find it
> you almost need the solution ahead of time), if you want to look it up
> (more detail) check out chapter 19 in the programmers guide.
>
> >
> > can someone please enlighten me?
>
> Try something like this:
>
> change the option back (uncheck set S_proj to working dir)
>
> create a new shortcut (or modify the above), right click on it and go to
> properties.
>
> Make the field in the "Target:" box look something like (all one line):
>
> "C:\Program Files\sp2000\cmd\SPLUS.exe" S_PROJ=c:\proj1
> S_DATA=c:\proj2\_Data S_PREFS=c:\proj3\_Prefs
>
> Now if you use this shortcut (assuming those directories exist), it will
> by default use C:\proj1 when it tries to read/import files and
> write/export files.  The working data directory will be the one under
> C:\proj2, and the UI preferences will be based on those under C:\proj3
>
> If you leave off the S_DATA or S_PREFS portions, then they will be based
> on S_PROJ.  This way you can make several shortcuts that point to
> different directories, or the same directory with different UI options,
> etc.
>
> Hope this helps,
>
> ----------------
> --------------------------------------------------------------
>      Gregory L. Snow         |  Inertia makes the world go round,
>      (Greg)                  |   Love makes the trip worth taking.
>      snow@statsci.com        |
> ------------------------------
> ------------------------------------------------

Prof Brian D Ripley wrote:

> On Thu, 28 Oct 1999, Joseph C. Davis wrote:
>
> >
> > Hello out there!
> >
> > I'm having a bit of trouble with my new computer and Splus. Since I
> > didn't install Splus, I didn't get to specify the 'default' directory.
> > So, I RTFM'd and V&R and did the following:
> > 1) created a shortcut
> > 2) edited the 'start in' box to show the directory where I wanted it to
> > start
> > 3) checked the 'set S_PROJ' button in the Splus preferences
> > 4) restarted Splus
> >
> > My problem is that the UI preferences get read from teh original
> > 'default' directory and not the directory specified by the 'start-in'.
> > Thus, all modifications to the UI are lost when I restart.
> >
> > I'm sure that this is a stupid user problem, but I just want the stupid
> > thing to start up in *my* default directory, not the system's default!
> >
> > can someone please enlighten me?
>
> You could read V&R again (3rd edition, page 452). We don't recommend the
> way you tried. Omit 3, put S_PROJ=. at the end of the target line in the
> shortcut.
>
> Actually, you don't mention the version of S-PLUS, but our recommended
> approach works for 4.5 and 2000, at least.
>
> --
> Brian D. Ripley,                  ripley@stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595

John Wallace wrote:

> >From jrw@fish.washington.edu Thu Oct 28 15:39:59 1999
> Date: Fri, 21 Nov 1997 14:53:29 -0800 (PST)
> From: John Wallace <jrw@fish.washington.edu>
> To: S-news <s-news@utstat.toronto.edu>
> Subject: S_PROJ=.
>
> Norm Olsen gives the hint of how to make a V4 Shortcut Icon work like
> version V3.  Just use 'S_PROJ=.' on the Target line. Then since the '.'
> stands for current directory, whatever 'Start in:' is set to will be the
> directory that V4 starts in.
>
> --
> John Wallace
> University of Washington                    ^    ^    ^
> Fisheries Research Institute               / \  / \  / \   ^
> Box 357980                                 / \  / \   |   / \
> Seattle, WA 98195-7980                      |    |  o__~  / \
> PHONE   (206) 543-1513                  @ @         /\/\   |
> FAX     (206) 685-7471                   ~
> E-MAIL        jw@u.washington.edu              o
> WWW      http://www.fish.washington.edu/people/jrw/Wallace.html
>                                                 o  _///_ //
>                                                 <`)=  _<<
>                                                     \\\  \\
>
> On Thu, 28 Oct 1999, Joseph C. Davis wrote:
>
> > -----------------------------------------------------------------------
> > 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
> >
>
> --
> John Wallace
> University of Washington                    ^    ^    ^
> Fisheries Research Institute               / \  / \  / \   ^
> Box 357980                                 / \  / \   |   / \
> Seattle, WA 98195-7980                      |    |  o__~  / \
> PHONE   (206) 860-3456                  @ @         /\/\   |
> FAX     (206) 860-3394                   ~
> E-MAIL        jw@u.washington.edu              o
> WWW      http://www.fish.washington.edu/people/jrw/Wallace.html
>                                                 o  _///_ //
>                                                 <`)=  _<<
>                                                     \\\  \\
>
> "For we are all prisoners of our times and days, yet all may
> seek the freedom of heart that cannot be taken from us by any
> power."
>                      In:  _To See Heaven in a Wild Flower_
>                                by Ann Tonsor Zeddies

huck Taylor wrote:

> I recommend you undo steps 2 & 3 below and do everything on the target line
> of
> the startup icon's shortcut.  You get more control that way.  If you are
> happy
> with having data and prefs in the same place (your directory), then set
> S_PROJ
> on that line.  For example, the line could read:
>
>   c:\splus\cmd\splus.exe S_PROJ="c:\splus\projects\proj1"
>
> where ...\proj1 is the parent directory of your new _data directory. The
> quotes aren't strictly necessary unless there is a blank in the pathname
> (e.g. "c:\Program Files\splus\...").
>
> For more details, see the chapter of the Programmer's Guide called "Command
> Line Options".
>
> Good luck,
>
> |-----------------------------------------------------------------------|
> | Chuck Taylor                       Senior Quality Assurance Engineer  |
> | MathSoft Seattle, WA, USA          chuck@statsci.com                  |
> |                                                                       |
> | "All statements in this message represent the opinions of the author  |
> | and do not necessarily reflect official MathSoft policy or position." |
> |-----------------------------------------------------------------------|
>
> On Thu, 28 Oct 1999, Joseph C. Davis wrote:
> >

"Joseph C. Davis" wrote:

> Hello out there!
>
> I'm having a bit of trouble with my new computer and Splus. Since I
> didn't install Splus, I didn't get to specify the 'default' directory.
> So, I RTFM'd and V&R and did the following:
> 1) created a shortcut
> 2) edited the 'start in' box to show the directory where I wanted it to
> start
> 3) checked the 'set S_PROJ' button in the Splus preferences
> 4) restarted Splus
>
> My problem is that the UI preferences get read from teh original
> 'default' directory and not the directory specified by the 'start-in'.
> Thus, all modifications to the UI are lost when I restart.
>
> I'm sure that this is a stupid user problem, but I just want the stupid
> thing to start up in *my* default directory, not the system's default!
>
> can someone please enlighten me?
>
> Thanks,
> jcd
>
> -----------------------------------------------------------------------
> 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

<Prev in Thread] Current Thread [Next in Thread>
  • [S] summary: problem with starting directory and prefs, Joseph C. Davis <=