Re: [R] bug Rcmdr

From: Richard M. Heiberger <rmh_at_temple.edu>
Date: Fri, 4 Jan 2008 11:58:06 -0500

John,

It's worse than a semi-colon problem. It is an error in a self-referential statement 'a <- a+5'. Type those lines as three separate lines in the Rcmdr Script Window
and you still get the wrong answer. This is from 1.3-9.

> a<-2

> a<-a+5

> a

[1] 12

Rich

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of John Fox
Sent: Friday, January 04, 2008 08:47 AM
To: jeremy.mazet_at_soredab.org
Cc: r-help_at_r-project.org
Subject: Re: [R] bug Rcmdr

Dear Jeremy,

As it says in ?Commander, the script window in the R Commander doesn't provide a true console to R. One of the things it doesn't do is handle lines with multiple commands separated by semicolons. In fact, I wonder what version of the Rcmdr package you're using, since (for me) in the latest version on CRAN (1.3-10), lines with semi-colons produce an error.

I'll take a look at this problem when I have a chance, and accommodate semi-colons if I can do so reasonably. I don't think that it should be too hard.

Regards,
 John



John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox

> -----Original Message-----
> From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-
> project.org] On Behalf Of jeremy.mazet_at_soredab.org
> Sent: January-04-08 6:14 AM
> To: r-help_at_r-project.org
> Subject: [R] bug Rcmdr
>
> Hello,
>
> If I run the script : "a<-2 ; a<-a+5 ; a" whith the "submit" buton in
> Rcmdr the result is 12 !!!
> But if I run the script "a<-2 ; b<-a+5 ; b" there is no problem and the
> result is 7.
>
> I think there is a bug in the function "onSubmit".
>
> Thanks,
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org 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_at_r-project.org 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_at_r-project.org 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. Received on Fri 04 Jan 2008 - 17:04:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 04 Jan 2008 - 18:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive