[Rd] Rounding error for high-precision numeric values (PR#13010)

2008-09-25 Thread hacking
Full_Name: David Hall (gringer) Version: 2.7.2 (2008-08-25) OS: Debian GNU/Linux (sid/lenny) Submission from: (NULL) (130.195.86.38) Following on from a conversation I had with someone on IRC about Java's handling of difficult floating point numbers and its comparison with R's handling, I observe

[Rd] R --interactive and readline() creates infinite loop

2008-09-25 Thread Jon Clayden
Dear all, I have asked before, in R-help [1], about a way to create an interactive session in which commands are taken from a file or standard input - like R CMD BATCH but additionally allowing user input - but there was no response to that question, and the workarounds that I have found

[Rd] help text in read.table

2008-09-25 Thread Henrik Parn
Dear R-developers, In read.table() the argument |colClasses = "NULL" can be used to skip columns and col.names to name the variables. The first time I tried to skip columns, I naively thought that /first/ the "NULL"-columns are skipped, /then/ you name only the remaining columns actually speci

[Rd] C++ & R: Displaying a lattice graphic using D Com

2008-09-25 Thread Noel Mulvihill
Dear list members, When I modify the MFC sample (using the statconnector graphics device) to show a lattice graph in the Active X control (actually the wireframe from http://addictedtor.free.fr/graphiques/graphcode.php?graph=40 ) the program runs without generating any errors, but the data-driven

Re: [Rd] R --interactive and readline() creates infinite loop

2008-09-25 Thread John Chambers
For an alternative approach to your original goal, take a look at demoSource() in the SoDA package from CRAN. It's a bit tedious to set up (see the Details section of the help file) but uses standard R sessions to mix lines from a demo file and interactive input. John Jon Clayden wrote: Dea

Re: [Rd] R --interactive and readline() creates infinite loop

2008-09-25 Thread Peter Dalgaard
One canonical way of doing it is: (echo 'print(readline("Input:"))'; cat -) | R --interactive --no-save (you don't want to leave out --no-save ) John Chambers wrote: > For an alternative approach to your original goal, take a look at > demoSource() in the SoDA package from CRAN. It's a bit

Re: [Rd] R --interactive and readline() creates infinite loop

2008-09-25 Thread hadley wickham
> I assume, given this outcome, that this is not the intended use of > --interactive, but I still wonder if there is any way to achieve an > interactive session based on a predefined set of commands without writing a > completely new front-end (overkill, surely?). When you say an interactive sessi

Re: [Rd] R --interactive and readline() creates infinite loop

2008-09-25 Thread Peter Dalgaard
hadley wickham wrote: >> I assume, given this outcome, that this is not the intended use of >> --interactive, but I still wonder if there is any way to achieve an >> interactive session based on a predefined set of commands without writing a >> completely new front-end (overkill, surely?). >>

Re: [Rd] R --interactive and readline() creates infinite loop

2008-09-25 Thread John Chambers
My application, at least, wanted to show (my class) individual commands from the file and then optionally insert some typed commands before going on to the next part of the source file. As far as I can see, the piped shell command approach will have to treat the whole file at one time. John Pe

Re: [Rd] R --interactive and readline() creates infinite loop

2008-09-25 Thread Jon Clayden
Many thanks for the suggestions. The use case I had in mind is more along the lines of what Peter Dalgaard mentioned, and his solution looks ideal. I know in advance exactly what code I want to run, but some of that code may require user input. Jon 2008/9/25 John Chambers <[EMAIL PROTECTED]>: >

Re: [Rd] R --interactive and readline() creates infinite loop

2008-09-25 Thread Peter Dalgaard
John Chambers wrote: My application, at least, wanted to show (my class) individual commands from the file and then optionally insert some typed commands before going on to the next part of the source file. As far as I can see, the piped shell command approach will have to treat the whole file

[Rd] Bug while loading Package "tcltk" with R-2.7.2 (PR#13016)

2008-09-25 Thread cyril . alegret
Full_Name: Cyril Alegret Version: 2.7.2 OS: Windows Submission from: (NULL) (90.80.39.42) An error occurs when I try to load the package "tcltk2_1.0-7" with R-2.7.2 (whereas it works with version 2.6.2). Please find below the error message : "> source("C:\\Data\\Travail\\Software&Method\\R\\Proc

Re: [Rd] Bug while loading Package "tcltk" with R-2.7.2 (PR#13016)

2008-09-25 Thread Duncan Murdoch
On 25/09/2008 7:30 AM, [EMAIL PROTECTED] wrote: Full_Name: Cyril Alegret Version: 2.7.2 OS: Windows Submission from: (NULL) (90.80.39.42) An error occurs when I try to load the package "tcltk2_1.0-7" with R-2.7.2 (whereas it works with version 2.6.2). Please find below the error message : "> s