Re: [R] windows vs. linux code

2009-02-26 Thread Wacek Kusnierczyk
(Ted Harding) wrote: There is one MAJOR issue you will have to watch out for, far more likely to turn up than calls like system(). This is that, if you want to have two or more plotting windows in use at the same time, while the first one is autoatically opened by the plot() command, you

Re: [R] windows vs. linux code

2009-02-26 Thread Paul Gilbert
Gabor Grothendieck wrote: Try if (.Platform$OS.type == windows) ... else ... Gabor has suggested what I think is the best way to do this check, but in my experience, if you are doing this check then you are almost certainly missing some feature of R that will let you avoid doing it.

Re: [R] windows vs. linux code

2009-02-26 Thread Prof Brian Ripley
On Thu, 26 Feb 2009, Paul Gilbert wrote: Gabor Grothendieck wrote: Try if (.Platform$OS.type == windows) ... else ... Gabor has suggested what I think is the best way to do this check, but in my experience, if you are doing this check then you are almost certainly missing some

Re: [R] windows vs. linux code

2009-02-26 Thread Jeffrey J. Hallman
Rolf Turner r.tur...@auckland.ac.nz writes: Despite the knowledge, wisdom, insight, skill, good looks, and other admirable characteristics of the members of the R-help list, few of us are skilled in telepathy or clairvoyance. Oh, yeah? Then how did I know you were going to say that, huh? --

[R] windows vs. linux code

2009-02-25 Thread Sherri Heck
Dear All- I have been given some Rcode that was written using a Linux OS, but I use Windows-based R. The person that is giving it to me said that it needs to run on a Linux system. Does anyone have any insight and/or can verify this. I haven't yet obtained the code, so I haven't been able

Re: [R] windows vs. linux code

2009-02-25 Thread Rolf Turner
On 26/02/2009, at 2:08 PM, Sherri Heck wrote: Dear All- I have been given some Rcode that was written using a Linux OS, but I use Windows-based R. The person that is giving it to me said that it needs to run on a Linux system. Does anyone have any insight and/ or can verify this. I

Re: [R] windows vs. linux code

2009-02-25 Thread jdeisenberg
Sherri Heck wrote: I have been given some Rcode that was written using a Linux OS, but I use Windows-based R. The person that is giving it to me said that it needs to run on a Linux system. Does anyone have any insight and/or can verify this. I haven't yet obtained the code, so I

Re: [R] windows vs. linux code

2009-02-25 Thread Sherri Heck
i am asking if, in general, r code can be written on a linux-based system and then run on a windows-based system. Rolf Turner wrote: On 26/02/2009, at 2:08 PM, Sherri Heck wrote: Dear All- I have been given some Rcode that was written using a Linux OS, but I use Windows-based R. The

Re: [R] windows vs. linux code

2009-02-25 Thread David Winsemius
Definitely maybe. Possibly yes. Usually. Pick one of the above. -- David Winsemius On Feb 25, 2009, at 8:25 PM, Sherri Heck wrote: i am asking if, in general, r code can be written on a linux-based system and then run on a windows-based system. Rolf Turner wrote: On 26/02/2009, at

Re: [R] windows vs. linux code

2009-02-25 Thread jdeisenberg
Sherri Heck wrote: i am asking if, in general, r code can be written on a linux-based system and then run on a windows-based system. Yes, if you avoid system-dependent calls like, um, system grin/, there should be no problem. For example, normal stuff like t test, correlation, plot,

Re: [R] windows vs. linux code

2009-02-25 Thread Sherri Heck
hahaha! okay. at least your responses are positive! thx! David Winsemius wrote: Definitely maybe. Possibly yes. Usually. Pick one of the above. -- David Winsemius On Feb 25, 2009, at 8:25 PM, Sherri Heck wrote: i am asking if, in general, r code can be written on a linux-based system

Re: [R] windows vs. linux code

2009-02-25 Thread Duncan Murdoch
On 25/02/2009 8:19 PM, jdeisenberg wrote: Sherri Heck wrote: I have been given some Rcode that was written using a Linux OS, but I use Windows-based R. The person that is giving it to me said that it needs to run on a Linux system. Does anyone have any insight and/or can verify this. I

Re: [R] windows vs. linux code

2009-02-25 Thread Murray Cooper
-project.org Sent: Wednesday, February 25, 2009 8:16 PM Subject: Re: [R] windows vs. linux code On 26/02/2009, at 2:08 PM, Sherri Heck wrote: Dear All- I have been given some Rcode that was written using a Linux OS, but I use Windows-based R. The person that is giving it to me said

Re: [R] windows vs. linux code

2009-02-25 Thread Ted Harding
There is one MAJOR issue you will have to watch out for, far more likely to turn up than calls like system(). This is that, if you want to have two or more plotting windows in use at the same time, while the first one is autoatically opened by the plot() command, you will have to open additional

Re: [R] windows vs. linux code

2009-02-25 Thread Gabor Grothendieck
On Wed, Feb 25, 2009 at 10:58 PM, Ted Harding ted.hard...@manchester.ac.uk wrote:  if(length(grep(linux,R.Version()$os))){  windows - function( ... ) X11( ... ) } Try if (.Platform$OS.type == windows) ... else ... __ R-help@r-project.org mailing

Re: [R] windows vs. linux code

2009-02-25 Thread Sherri Heck
hi ted- thanks for your insight. i appreciate it. sherri (Ted Harding) wrote: There is one MAJOR issue you will have to watch out for, far more likely to turn up than calls like system(). This is that, if you want to have two or more plotting windows in use at the same time, while the first

Re: [R] windows vs. linux code

2009-02-25 Thread Kingsford Jones
X11() on my Vista machine running 2.8.1 seems to work the same as windows(). From the help page, the only difference I see is that 'X11' (and 'x11') have only width, height and pointsize arguments ('windows' has another 13). Kingsford On Wed, Feb 25, 2009 at 8:58 PM, Ted Harding

Re: [R] windows vs. linux code

2009-02-25 Thread Prof Brian Ripley
I think what in my experience is the most common causen for R code being confined to one platform has not yet been mentioned: it needs a package that is only available on one platform: of CRAN/BioC packages that is only a small proprtion, but out of 2000 a small proportion is still tens. On