[R] 2nd R Console

2007-07-30 Thread Michael Janis
Hi,

I was reading a thread: [R] 2nd R console and had a similar question
regarding having more than one R console open at a time.  However, my
question differs from that of the thread:

Is it possible, or is there a wrapper that will allow one, to open an
arbitrary number of R consoles which access the same R session (all objects
in that session, etc.).  This would be R on linux accessed through a shell -
kind of like using GNU screen multi-user such that people could work
collaboratively on a given session.  The problem with screen is that all
commands are interleaved in the same terminal, which is confusing and does
not allow access to the command prompt at the same time, rather it would be
sequential.  I know there will be why questions but it is useful in an
academic environment.  Basically we have a memory machine for large genomic
analysis - and we could set that up as an Rserver, but this placing R into a
multi-user engine is better suited for our immediate needs.  Does anybody
have thoughts on this?

Thanks for considering,

Michael Janis
UCLA Bioinformatics

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] 2nd R Console

2007-07-30 Thread Michael Janis
Hi,

I was reading a thread: [R] 2nd R console and had a similar question
regarding having more than one R console open at a time.  However, my
question differs from that of the thread:

Is it possible, or is there a wrapper that will allow one, to open an
arbitrary number of R consoles which access the same R session (all objects
in that session, etc.).  This would be R on linux accessed through a shell -
kind of like using GNU screen multi-user such that people could work
collaboratively on a given session.  The problem with screen is that all
commands are interleaved in the same terminal, which is confusing and does
not allow access to the command prompt at the same time, rather it would be
sequential.  I know there will be why questions but it is useful in an
academic environment.  Basically we have a memory machine for large genomic
analysis - and we could set that up as an Rserver, but this placing R into a
multi-user engine is better suited for our immediate needs.  Does anybody
have thoughts on this?

Thanks for considering,

Michael Janis
UCLA Bioinformatics

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] 2nd R Console

2007-07-30 Thread Ted Harding
On 28-Jul-07 08:19:10, Michael Janis wrote:
 Hi,
 
 I was reading a thread: [R] 2nd R console and had a similar
 question regarding having more than one R console open at a time. 
 However, my question differs from that of the thread:
 
 Is it possible, or is there a wrapper that will allow one, to open
 an arbitrary number of R consoles which access the same R session
 (all objects in that session, etc.).  This would be R on linux
 accessed through a shell - kind of like using GNU screen multi-user
 such that people could work collaboratively on a given session.
 The problem with screen is that all commands are interleaved in
 the same terminal, which is confusing and does not allow access
 to the command prompt at the same time, rather it would be sequential.
 I know there will be why questions but it is useful in an
 academic environment.  Basically we have a memory machine for large
 genomic analysis - and we could set that up as an Rserver, but this
 placing R into a multi-user engine is better suited for our immediate
 needs.  Does anybody have thoughts on this?

You could have a look at XMX (X-protocol Multiplexer). This is now
rather old, and I think it has not been further developed for many
years.

http://www.cs.brown.edu/software/xmx/README.patch7

Basically, you would start XMX from one machine (A) networked
to others (B,C,...), all running X-windows. in the startup, you
designate which machines are to share the session, and what rights
they will have.

On machine A, and all designated machines B, C, ... , appears
a window. This in fact acts like a screen emulator, with its
own X session inside it. The A user then starts up a program
(say R) in this window, and what A sees is mirrored on the other
machines.

If A has granted input privileges to the other machines, then
users of B, C, ... can do things themselves, and the effects of
their actions are mirrored to all the other machines.

Thus, for instance, it would be possible for different users to
take turns at entering commands into the R session, and so on,
from their own machines. This is a much better way of arranging
things, than having all the people queue up to take turns at
sitting in the one and only chair!

It is certainly useful in a classroom situation, and even in
a one-to-one tutorial. For instance, I've used it in the past
to teach programming and system management, sitting more or
less beside the other person but at different machines. We
would both, for instance, be editing the same program file,
and either could initiate a program run with the current file.
(Of course, what's technically called a race condition can
develop here ... ). I've even envisaged the scenario where two
people, one in England and one in the US, could simultaneously
be editing a joint paper (you'd also need an independent
communication channel as well, but that's no problem using a
chat program).

The one constraint with XMX (at least in the past, I'm not
sure to what extent it may have been relaxed) which can limit
its use is that it depends on fairly close compatibility
between the X resources of all the different machines. It's
best of they're identical (same screen resolution e.g. 1024x768,
same colour depths on all screens, ... ). Otherwise it's liable
to not establish the necessary connections, and only some
machines can join in.

However, in a computing lab environment, it may well be that
all machines are compatible.

Suck it and see!

Hoping this is useful,
Ted.


E-Mail: (Ted Harding) [EMAIL PROTECTED]
Fax-to-email: +44 (0)870 094 0861
Date: 30-Jul-07   Time: 19:27:48
-- XFMail --

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] 2nd R Console

2007-07-30 Thread Michael Janis
Oh now that *is* something interesting!  Thank you Greg, I'll have to give
this a try.

-Original Message-
From: Greg Snow [mailto:[EMAIL PROTECTED]
Sent: Monday, July 30, 2007 3:44 PM
To: [EMAIL PROTECTED]; r-help@stat.math.ethz.ch
Subject: RE: [R] 2nd R Console

Have you looked at the nws package?

It allows for a common workspace that multiple R sessions can all access.

Hope this helps,

-Original Message-
From: Michael Janis [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch r-help@stat.math.ethz.ch
Sent: 7/30/07 7:49 AM
Subject: [R] 2nd R Console

Hi,

I was reading a thread: [R] 2nd R console and had a similar question
regarding having more than one R console open at a time.  However, my
question differs from that of the thread:

Is it possible, or is there a wrapper that will allow one, to open an
arbitrary number of R consoles which access the same R session (all objects
in that session, etc.).  This would be R on linux accessed through a shell -
kind of like using GNU screen multi-user such that people could work
collaboratively on a given session.  The problem with screen is that all
commands are interleaved in the same terminal, which is confusing and does
not allow access to the command prompt at the same time, rather it would be
sequential.  I know there will be why questions but it is useful in an
academic environment.  Basically we have a memory machine for large genomic
analysis - and we could set that up as an Rserver, but this placing R into a
multi-user engine is better suited for our immediate needs.  Does anybody
have thoughts on this?

Thanks for considering,

Michael Janis
UCLA Bioinformatics

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] 2nd R console?

2006-03-10 Thread roger bos
I never tried opening more than one instance of Rgui, but when I wanted to
run two jobs at the same time on one Win XP PC, I would run one in Rgui and
one in Rterm and I have never had a problem with that setup.  As above, when
I close my R session, I always say no to the save question.

HTH,

Roger


On 3/10/06, Prof Brian Ripley [EMAIL PROTECTED] wrote:

 On Thu, 9 Mar 2006, Thomas Lumley wrote:

  On Thu, 9 Mar 2006, mark garey wrote:
 
  hello all, i'm forwarding this question for a colleague.
 
  Is it possible to open a 2nd R Console?
 
  The answer is probably No, but since it isn't clear what your
 colleague
  means by a 2nd R Console or what OS this is, it's hard to be sure.

 I would say the answer is almost certainly 'yes'.  In all the cases I know
 of if you launch 2 (or more) R consoles you will get separate R processes
 with separate workspaces.  The only problem I can envisage is that they
 might share a working directory and so the last one shut down could
 overwrite the workspace image and history saved from other consoles.
 (But that is only a problem if you save your work that way, and I rarely
 do.)

 --
 Brian D. Ripley,  [EMAIL PROTECTED]
 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 272866 (PA)
 Oxford OX1 3TG, UKFax:  +44 1865 272595

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide!
 http://www.R-project.org/posting-guide.html


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] 2nd R console?

2006-03-10 Thread mark garey
yes sorry at the very least i should have mentioned this
is on OSX.

regards,

mark+ \ ucsf

On Mar 10, 2006, at 5:14 AM, roger bos wrote:

 I never tried opening more than one instance of Rgui, but when I 
 wanted to run two jobs at the same time on one Win XP PC, I would run 
 one in Rgui and one in Rterm and I have never had a problem with that 
 setup.  As above, when I close my R session, I always say no to the 
 save question.
  
 HTH,
  
 Roger

  
 On 3/10/06, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 9 
 Mar 2006, Thomas Lumley wrote:

  On Thu, 9 Mar 2006, mark garey wrote:
 
  hello all, i'm forwarding this question for a colleague.
 
  Is it possible to open a 2nd R Console?
 
  The answer is probably No, but since it isn't clear what your 
 colleague
  means by a 2nd R Console or what OS this is, it's hard to be sure.

 I would say the answer is almost certainly 'yes'.  In all the cases I 
 know
 of if you launch 2 (or more) R consoles you will get separate R 
 processes
 with separate workspaces.  The only problem I can envisage is that 
 they
 might share a working directory and so the last one shut down could
 overwrite the workspace image and history saved from other consoles.
 (But that is only a problem if you save your work that way, and I 
 rarely
  do.)

 --
 Brian D. Ripley,[EMAIL PROTECTED]
 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 272866 (PA)
 Oxford OX1 3TG, UKFax:  +44 1865 272595

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! 
 http://www.R-project.org/posting-guide.html

--
mark garey
ucsf
department of epidemiology and biostatistics
division of biostatistics
185 berry street, suite 5700
san francisco, ca. 94107-1739
415.514.8147

[[alternative text/enriched version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] 2nd R console?

2006-03-10 Thread roger bos
Never used that, but go to your bin folder and see if you see both Rgui.exeand
Rterm.exe.  If so, you can definitely use that method.

HTH,

Roger



On 3/10/06, mark garey [EMAIL PROTECTED] wrote:

 yes sorry at the very least i should have mentioned this
 is on OSX.

 regards,

 mark+ \ ucsf

 On Mar 10, 2006, at 5:14 AM, roger bos wrote:

  I never tried opening more than one instance of Rgui, but when I
  wanted to run two jobs at the same time on one Win XP PC, I would run
  one in Rgui and one in Rterm and I have never had a problem with that
  setup. As above, when I close my R session, I always say no to the
  save question.
 
  HTH,
 
  Roger
 
 
  On 3/10/06, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 9
  Mar 2006, Thomas Lumley wrote:
 
   On Thu, 9 Mar 2006, mark garey wrote:
  
   hello all, i'm forwarding this question for a colleague.
  
   Is it possible to open a 2nd R Console?
  
   The answer is probably No, but since it isn't clear what your
  colleague
   means by a 2nd R Console or what OS this is, it's hard to be sure.
 
  I would say the answer is almost certainly 'yes'.In all the cases I
  know
  of if you launch 2 (or more) R consoles you will get separate R
  processes
  with separate workspaces.The only problem I can envisage is that
  they
  might share a working directory and so the last one shut down could
  overwrite the workspace image and history saved from other consoles.
  (But that is only a problem if you save your work that way, and I
  rarely
   do.)
 
  --
  Brian D. Ripley,[EMAIL PROTECTED]
  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 272866 (PA)
  Oxford OX1 3TG, UKFax:+44 1865 272595
 
  __
  R-help@stat.math.ethz.ch mailing list
  https://stat.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide!
  http://www.R-project.org/posting-guide.html
 
 --
 mark garey
 ucsf
 department of epidemiology and biostatistics
 division of biostatistics
 185 berry street, suite 5700
 san francisco, ca. 94107-1739
 415.514.8147

[[alternative text/enriched version deleted]]



 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide!
 http://www.R-project.org/posting-guide.html



[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] 2nd R console?

2006-03-10 Thread Thomas Lumley

On Fri, 10 Mar 2006, mark garey wrote:


yes sorry at the very least i should have mentioned this
is on OSX.


Yes, but the real question is what you mean by a 2nd R console.  I 
guessed that you meant a second console for the same workspace, Brian 
Ripley guessed that you meant another instance of R.


-thomas



regards,

mark+ \ ucsf

On Mar 10, 2006, at 5:14 AM, roger bos wrote:


I never tried opening more than one instance of Rgui, but when I
wanted to run two jobs at the same time on one Win XP PC, I would run
one in Rgui and one in Rterm and I have never had a problem with that
setup.? As above, when I close my R session, I always say no to the
save question.
?
HTH,
?
Roger

?
On 3/10/06, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 9
Mar 2006, Thomas Lumley wrote:



On Thu, 9 Mar 2006, mark garey wrote:


hello all, i'm forwarding this question for a colleague.

Is it possible to open a 2nd R Console?


The answer is probably No, but since it isn't clear what your

colleague

means by a 2nd R Console or what OS this is, it's hard to be sure.


I would say the answer is almost certainly 'yes'.??In all the cases I
know
of if you launch 2 (or more) R consoles you will get separate R
processes
with separate workspaces.??The only problem I can envisage is that
they
might share a working directory and so the last one shut down could
overwrite the workspace image and history saved from other consoles.
(But that is only a problem if you save your work that way, and I
rarely
 do.)

--
Brian D. Ripley,[EMAIL PROTECTED]
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 272866 (PA)
Oxford OX1 3TG, UKFax:??+44 1865 272595

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html


--
mark garey
ucsf
department of epidemiology and biostatistics
division of biostatistics
185 berry street, suite 5700
san francisco, ca. 94107-1739
415.514.8147

[[alternative text/enriched version deleted]]




Thomas Lumley   Assoc. Professor, Biostatistics
[EMAIL PROTECTED]   University of Washington, Seattle__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] 2nd R console?

2006-03-09 Thread mark garey
hello all, i'm forwarding this question for a colleague.

Is it possible to open a 2nd R Console?

regards,

mark+

--
mark garey
ucsf
department of epidemiology and biostatistics
division of biostatistics
185 berry street, suite 5700
san francisco, ca. 94107-1739
415.514.8147

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] 2nd R console?

2006-03-09 Thread Thomas Lumley
On Thu, 9 Mar 2006, mark garey wrote:

 hello all, i'm forwarding this question for a colleague.

 Is it possible to open a 2nd R Console?


The answer is probably No, but since it isn't clear what your colleague 
means by a 2nd R Console or what OS this is, it's hard to be sure.


-thomas

Thomas Lumley   Assoc. Professor, Biostatistics
[EMAIL PROTECTED]   University of Washington, Seattle

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] 2nd R console?

2006-03-09 Thread Michael Prager
On Windows, I often have more than one R console (instance of Rgui.exe) 
open at the same time.  Unless by mistake, each instance is open on a 
unique working directory.

MHP

mark garey wrote on 3/9/2006 8:05 PM:
 hello all, i'm forwarding this question for a colleague.

 Is it possible to open a 2nd R Console?

 regards,

 mark+

 --
 mark garey
 ucsf
 department of epidemiology and biostatistics
 division of biostatistics
 185 berry street, suite 5700
 san francisco, ca. 94107-1739
 415.514.8147

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
   

-- 
Michael H. Prager, Ph.D.
Population Dynamics Team
NOAA Center for Coastal Habitat and Fisheries Research
NMFS Southeast Fisheries Science Center
Beaufort, North Carolina  28516  USA
http://shrimp.ccfhrb.noaa.gov/~mprager/

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] 2nd R console?

2006-03-09 Thread Prof Brian Ripley
On Thu, 9 Mar 2006, Thomas Lumley wrote:

 On Thu, 9 Mar 2006, mark garey wrote:

 hello all, i'm forwarding this question for a colleague.

 Is it possible to open a 2nd R Console?

 The answer is probably No, but since it isn't clear what your colleague
 means by a 2nd R Console or what OS this is, it's hard to be sure.

I would say the answer is almost certainly 'yes'.  In all the cases I know 
of if you launch 2 (or more) R consoles you will get separate R processes 
with separate workspaces.  The only problem I can envisage is that they 
might share a working directory and so the last one shut down could 
overwrite the workspace image and history saved from other consoles.
(But that is only a problem if you save your work that way, and I rarely 
do.)

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html