Re: [Rd] Wishlist: Navigate to "Index" page of help when no topic (PR#13872)

2009-08-04 Thread Romain Francois
Hello, I'm jumping a bit late on this, but what about something like: index?survival or more generally foo?bar with the ability for the user/package to define what the combination "foo"/"bar" means. At the moment, the way "package?survival" is handled is to : - create the string "package-s

Re: [Rd] Wishlist: Navigate to "Index" page of help when no topic (PR#13873)

2009-08-04 Thread smckinney
> -Original Message- > From: Duncan Murdoch [mailto:murd...@stats.uwo.ca] > Sent: Tuesday, August 04, 2009 5:06 PM > To: Steven McKinney > Cc: 'r-de...@stat.math.ethz.ch'; 'r-b...@r-project.org' > Subject: Re: [Rd] Wishlist: Navigate to "Index" page of help when no > topic specified (PR#138

Re: [Rd] Advice sought about Rd versions

2009-08-04 Thread Duncan Murdoch
On 28/07/2009 1:21 PM, Michael Dewey wrote: From R 2.9.0 we have the concept of versions for Rd files. The manual is clear about the differences but I am unsure as to what I should do about my existing packages. Is it recommended that I set the version to 1.1 and then fix the errors R CMD chec

Re: [Rd] Wishlist: Navigate to "Index" page of help when no topic specified (PR#13860)

2009-08-04 Thread Steven McKinney
> -Original Message- > From: Duncan Murdoch [mailto:murd...@stats.uwo.ca] > Sent: Tuesday, August 04, 2009 5:06 PM > To: Steven McKinney > Cc: 'r-de...@stat.math.ethz.ch'; 'r-b...@r-project.org' > Subject: Re: [Rd] Wishlist: Navigate to "Index" page of help when no > topic specified (PR#138

Re: [Rd] Inaccurate complex arithmetic of R (Matlab is accurate)

2009-08-04 Thread John Nolan
Ravi, There has been a lot of chatter about this, and people don't seem to be reading carefully. Perhaps this will help clarify things. The problem appears to be that R was evaluating x^2 not as multiplication x*x, but as x^2.0=exp(2.0*log(x)), using standard C functions for the complex log and

Re: [Rd] Wishlist: Navigate to "Index" page of help when no topic (PR#13872)

2009-08-04 Thread murdoch
On 04/08/2009 7:33 PM, Steven McKinney wrote: >> -Original Message- >> From: Duncan Murdoch [mailto:murd...@stats.uwo.ca] >> Sent: Tuesday, August 04, 2009 8:03 AM >> To: Steven McKinney >> Cc: r-de...@stat.math.ethz.ch; r-b...@r-project.org >> Subject: Re: [Rd] Wishlist: Navigate to "Index

Re: [Rd] Wishlist: Navigate to "Index" page of help when no topic specified (PR#13860)

2009-08-04 Thread Duncan Murdoch
On 04/08/2009 7:33 PM, Steven McKinney wrote: -Original Message- From: Duncan Murdoch [mailto:murd...@stats.uwo.ca] Sent: Tuesday, August 04, 2009 8:03 AM To: Steven McKinney Cc: r-de...@stat.math.ethz.ch; r-b...@r-project.org Subject: Re: [Rd] Wishlist: Navigate to "Index" page of help w

Re: [Rd] Wishlist: Navigate to "Index" page of help when no topic (PR#13871)

2009-08-04 Thread smckinney
> -Original Message- > From: Duncan Murdoch [mailto:murd...@stats.uwo.ca] > Sent: Tuesday, August 04, 2009 8:03 AM > To: Steven McKinney > Cc: r-de...@stat.math.ethz.ch; r-b...@r-project.org > Subject: Re: [Rd] Wishlist: Navigate to "Index" page of help when no > topic specified (PR#13860)

Re: [Rd] Wishlist: Navigate to "Index" page of help when no topic specified (PR#13860)

2009-08-04 Thread Steven McKinney
> -Original Message- > From: Duncan Murdoch [mailto:murd...@stats.uwo.ca] > Sent: Tuesday, August 04, 2009 8:03 AM > To: Steven McKinney > Cc: r-de...@stat.math.ethz.ch; r-b...@r-project.org > Subject: Re: [Rd] Wishlist: Navigate to "Index" page of help when no > topic specified (PR#13860)

Re: [Rd] Accuracy (PR#13867)

2009-08-04 Thread Greg . Snow
What research into this problem did you do that failed to turn up FAQ 7.31? --=20 Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r- > project

Re: [Rd] Accuracy (PR#13867)

2009-08-04 Thread Greg Snow
What research into this problem did you do that failed to turn up FAQ 7.31? -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r- > project.o

Re: [Rd] Inaccurate complex arithmetic of R (Matlab is accurate)

2009-08-04 Thread Duncan Murdoch
On 04/08/2009 1:41 PM, Richardson, Ash wrote: Dear Ravi, Here's an idea: if R uses the C++ library complex.h, then the problem may lie in the C++ library. (Or how the C++ library is being called: perhaps it's defaulting to single precision floating point). I recently wrote an eigen-solver fo

[Rd] Alt-F4 leaves RGUI console in wait state when closing some dialog boxes (PR#13870)

2009-08-04 Thread richcalaway
Full_Name: Rich Calaway Version: R 2.7.2; R 2.10.0 r48968 2009-07-21 OS: Windows Vista Ultimate SP1, Windows XP SP3 Submission from: (NULL) (65.47.30.18) Various dialog boxes have different responses to Alt-F4; all of those launched from the File menu behave correctly--the dialog box closes and t

[Rd] Sweave errors during package building

2009-08-04 Thread Claudia Beleites
Dear all, I just spent quite a while fixing a weird error in my vignettes while doing R CMD build and R CMD check R CMD Sweave ran fine, though. The cause turned out to be: 1. I have a data set flu, 2. and a corresponding vignette explaining things one can do with that object. This vignette cr

Re: [Rd] Inaccurate complex arithmetic of R (Matlab is accurate)

2009-08-04 Thread Richardson, Ash
Dear Ravi, Here's an idea: if R uses the C++ library complex.h, then the problem may lie in the C++ library. (Or how the C++ library is being called: perhaps it's defaulting to single precision floating point). I recently wrote an eigen-solver for a complex matrix using explicit formula; using

Re: [Rd] Accuracy (PR#13867)

2009-08-04 Thread Petr Savicky
On Tue, Aug 04, 2009 at 04:25:09PM +0200, lueth...@student.ethz.ch wrote: > Hi > > I created the following vectors: > > p_1=c(0.2,0.2,0.2,0.2,0.1,0.25,0.4,0.1,0.25,0.4,0.1,0.25,0.4,0.1,0.25,0.4,0.2,0.5,0.8,0.2,0.5,0.8,0.2,0.5,0.8,0.2,0.5,0.8) > p_2=c(0,0,0,0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.

Re: [Rd] can a key of a list be a variable

2009-08-04 Thread Tony Plate
Patterns like these can help to do what you want: > lapply(setNames(1:3, paste("step", 1:3, sep="")), function(i) seq(i)) $step1 [1] 1 $step2 [1] 1 2 $step3 [1] 1 2 3 > setNames(list("the result"), paste("a", "name")) $`a name` [1] "the result" > -- Tony Plate Bilel MASMOUDI wrote: Hi, I

[Rd] Accuracy (PR#13867)

2009-08-04 Thread luethman
Full_Name: Manuel Luethi Version: 2.9.1 OS: Windows XP Submission from: (NULL) (129.132.128.136) Hi I created the following vectors: p_1=c(0.2,0.2,0.2,0.2,0.1,0.25,0.4,0.1,0.25,0.4,0.1,0.25,0.4,0.1,0.25,0.4,0.2,0.5,0.8,0.2,0.5,0.8,0.2,0.5,0.8,0.2,0.5,0.8) p_2=c(0,0,0,0,0.5,0.5,0.5,0.5,0.5,0.5,0

Re: [Rd] Inaccurate complex arithmetic of R (Matlab is accurate)

2009-08-04 Thread Ravi Varadhan
Please forgive me for my lack of understanding of IEEE floating-point arithmetic. I have a hard time undertsanding why "this is not a problem of R itself", when "ALL" the other well known computing environments including Matlab, Octave, S+, and Scilab provide accurate results. My concern is not

Re: [Rd] Inaccurate complex arithmetic of R (Matlab is accurate)

2009-08-04 Thread Ravi Varadhan
Dear Martin, Thank you for this useful trick. However, we are interested in a "general" approach for exact derivative computation. This approach should allow the user to specify the mathematical function that needs to be differentiated in "any" form that the user chooses. So, your trick will be

Re: [Rd] can a key of a list be a variable

2009-08-04 Thread Bilel MASMOUDI
Hi, I found a solution: creating lists without using keys l<<-c(l,list(x)) Many thanks, 2009/8/4 Bilel MASMOUDI > Hi, > > I search a solution to record data in dynamic structures in R. > I have an algorithm that will be executed each step and whose output is an > array of doubles with unknown

[Rd] can a key of a list be a variable

2009-08-04 Thread Bilel MASMOUDI
Hi, I search a solution to record data in dynamic structures in R. I have an algorithm that will be executed each step and whose output is an array of doubles with unknown size. The solution I found is to use lists 1) I initialise my list l <- list() 2) and at a step numbered i I conacatain the

[Rd] would like to subscribe...

2009-08-04 Thread Hyo Karen Lee
totem...@gmail.com Thanks. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Inaccurate complex arithmetic of R (Matlab is accurate)

2009-08-04 Thread Martin Maechler
> "MM" == Martin Maechler > on Mon, 3 Aug 2009 19:30:24 +0200 writes: > "HWB" == Hans W Borchers > on Mon, 3 Aug 2009 13:15:11 + (UTC) writes: >>> HWB> Thanks for pointing out the weak point in this HWB> computation. I tried out your suggestions an

Re: [Rd] Wishlist: Navigate to "Index" page of help when no topic (PR#13868)

2009-08-04 Thread murdoch
On 7/28/2009 6:30 PM, smckin...@bccrc.ca wrote: > Hi all, > > When I install a new package, and don't yet know any function names, > I have to play the "poor man's game" to get to the standard > help system "Index" page for the package: You could complain to the package author or maintainer, who

Re: [Rd] Wishlist: Navigate to "Index" page of help when no topic specified (PR#13860)

2009-08-04 Thread Duncan Murdoch
On 7/28/2009 6:30 PM, smckin...@bccrc.ca wrote: Hi all, When I install a new package, and don't yet know any function names, I have to play the "poor man's game" to get to the standard help system "Index" page for the package: You could complain to the package author or maintainer, who should

Re: [Rd] Inaccurate complex arithmetic of R (Matlab is accurate)

2009-08-04 Thread Hans W Borchers
> I suspect that, in general, you may be facing the limitations of machine > accuracy (more precisely, IEEE 754 arithmetics on [64-bit] doubles) in Dear Martin, I definitely do not agree with this. Consider your own proposal of writing the Rosenbrock function: rosen2 <- function(x) {

Re: [Rd] Inaccurate complex arithmetic of R (Matlab is accurate)

2009-08-04 Thread Tom Short
I checked, and both octave and yorick use multiplication for z^i where i is an integer, leading to better accuracy. Octave uses an integer power if it's stored as a double if it's close enough to an integer. See: http://hg.savannah.gnu.org/hgweb/octave/file/fb22dd5d6242/src/xpow.cc http://yorick.s

[Rd] Inconsistencies in missing names of a list?

2009-08-04 Thread Bernd Bischl
Hi, I would like to discuss whether the following behaviour in lists is indeed intended: ### > sessionInfo() R version 2.10.0 Under development (unstable) (2009-07-21 r48968) i386-pc-mingw32 locale: [1] LC_COLLATE=German_Germany.1252 LC_CTYPE=G

Re: [Rd] Inaccurate complex arithmetic of R (Matlab is accurate)

2009-08-04 Thread Martin Becker
Dear Ravi, I suspect that, in general, you may be facing the limitations of machine accuracy (more precisely, IEEE 754 arithmetics on [64-bit] doubles) in your application. This is not a problem of R itself, but rather a problem of standard arithmetics provided by underlying C compilers/CPUs.

Re: [Rd] What changed in the R Windows interface from v2.6.2 to v2.7.0?

2009-08-04 Thread Duncan Murdoch
Mark Thyer wrote: Dear R-devel, I would like to launch the Rgui.exe from a Fortran console application (we will call this FortranCon.exe), that I have written myself. To do this, I send the command line "C:\Program Files\R\R-X.X.X\Rgui.exe" (where X.X.X is the version number) as an argument

[Rd] save() does not issue an error if it tries to write on overfull hdd (PR#13866)

2009-08-04 Thread benjamin . hofner
Full_Name: Benjamin Hofner Version: 2.9.1 OS: Ubuntu 8.04 Submission from: (NULL) (141.67.245.196) Hi, if I try to save (via save(...), write.table(...), etc.) some data on a full (!) disc (free disc space was ~ 20Kb) the save command seems to finish without an error. However, if you try to load