Thanks to Steven McKinney at Insightful for this solution:
Use
> synchronize(n)
where n is the database position
of the shared database.
See his explanation below.
I had earlier tried tried synchronize(), which does not work.
-----Original Message-----
From: Steve McKinney [mailto:smckinney@insightful.com]
Sent: Friday, February 23, 2001 2:06 PM
To: Richard Valliant
Subject: RE: [S] RE: Disappearing objects
I just fired up two S-PLUS sessions using the same
_data database in position 1.
If I set up a variable in one session
Session1> foo1 <- 1
then set up another variable in the other session
Session2> foo2 <- 2
then at this point Session1 is unaware of foo2
and Session2 is unaware of foo1 (and vice versa).
Session2> foo1
Error: Object "foo1" not found
synchronize(1) forces database 1 to be synchronized
(synchronize() does not)
Session2> synchronize(1)
NULL
Session2> foo1
[1] 1
Session2>
Now back to session1
Session1> synchronize(1)
NULL
Session1> foo2
[1] 2
>
so now both sessions can see both variables
from the command line.
I did notice that if I run synchronize(1)
at the same time in both sessions then the
gui synchronizations (which require writing
to some files such as __sum4.txt) generate
warnings, as both sessions cannot write
to the same file at the same time.
Session2> synchronize(1)
Session1> synchronize(1)
NULL
Warning messages:
Unable to create summary in summary file
D:\test\_Data/__sum4.txt in:
assign.default(".Last.value", value,
where = 1, immediate = T)
However, I am still able to see all
variables from the command line and
from the gui (i.e. from the menu,
Data - Select Data
and enter the variable name)
so this warning is not severe.
So try using
> synchronize(n)
where n is the database position
of the shared database and see if this
works.
Best regards
Steven McKinney
Consulting Services
Insightful Corporation
smckinney@insightful.com <mailto:smckinney@insightful.com>
Views expressed are my own, not Insightful's, etc.
Insightful Corporation
1700 Westlake Avenue North, Suite 500
Seattle, Washington 98109-3044 USA
www.insightful.com
Formerly known as MathSoft, Insightful Corporation
provides analytical solutions leveraging S-PLUS,
StatServer, S-PLUS Analytic Server and consulting services.
> -----Original Message-----
> From: s-news-owner@lists.biostat.wustl.edu
> [mailto:s-news-owner@lists.biostat.wustl.edu]On Behalf Of Richard
> Valliant
> Sent: Friday, February 23, 2001 10:14 AM
> To: S-News@Lists. Biostat. Wustl. Edu (E-mail)
> Cc: Richard Valliant
> Subject: [S] RE: Disappearing objects
>
>
> Thanks to Greg Snow, Sam Buttrey, Nick Ellis, Patrick
> Connolly, and immhan
> who suggested that using synchronize() might allow a user to
> see objects
> created by someone else.
>
> After a little experimentation, we determined that this does
> not work on our
> platform (Windows95 PCs, Novell Netware on network. SPLUS
> 2000 Prof. Release
> 1). Exiting SPLUS and re-entering does work but is pretty
> inconvenient,
> especially if you're working on a deadline.
>
> Original post:
> > Two of us are trying to use the same _data directory on a
> server. We are
> > running into a couple of problems. First, we are finding
> that objects
> > created by one person are not seen by the other. This is
> usually cured if
> > the person exits SPLUS and re-enters it. Although not we'd
> hoped for, we
> > can understand this.
>
> R. Valliant
>
> ---------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu. To
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> the BODY of the message: unsubscribe s-news
>
|