Re: [Rd] bug (PR#13570)

2009-03-05 Thread Prof Brian Ripley
On Thu, 5 Mar 2009, Benjamin Tyner wrote: Hi Nice to hear from you Ryan. I also do not have the capability to debug on windows; however, there is a chance that the behavior you are seeing is caused by the following bug noted in my thesis (available on ProQuest; email me if you don't have acc

[Rd] array subsetting of S4 object that inherits from "array"

2009-03-05 Thread Bradley Buchsbaum
Hi, I have an S4 class that inherits from "array" but does not add generic implementations of the "[" method. A simplified example is: setClass("fooarray", contains="array") If I create a "fooarray" object and subset it with a one-dimensional index vector, the return value is of class "fooarray

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Benjamin Tyner
Hi Nice to hear from you Ryan. I also do not have the capability to debug on windows; however, there is a chance that the behavior you are seeing is caused by the following bug noted in my thesis (available on ProQuest; email me if you don't have access): "When lambda = 0 there are no local

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Ryan Hafen
Excellent, Ben! Thanks!! On Mar 5, 2009, at 8:24 PM, Benjamin Tyner wrote: Hi Nice to hear from you Ryan. I also do not have the capability to debug on windows; however, there is a chance that the behavior you are seeing is caused by the following bug noted in my thesis (available on P

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Ryan Hafen
That is true - good point. lp1 <- predict(loess(y ~ x, degree=0)) lp2 <- predict(loess(y ~ x, degree=0, control=loess.control(surface="direct"))) sort(abs(lp1-lp2)) It appears that the interpolating fit is correct at the vertices. I know when degree>=1, the interpolation uses the slopes of

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Duncan Murdoch
On 05/03/2009 9:42 AM, Ryan Hafen wrote: On Mar 5, 2009, at 7:59 AM, Prof Brian Ripley wrote: On Thu, 5 Mar 2009, Peter Dalgaard wrote: Prof Brian Ripley wrote: Undortunately the example is random, so not really reproducible (and I see nothing wrong on my Mac). However, Linux valgrind on R

Re: [Rd] problem building a package with C code (PR#13572)

2009-03-05 Thread Duncan Murdoch
On 05/03/2009 9:55 AM, pfar...@mat.puc.cl wrote: Hi, my name is Paula. Im trying to learn how to build an R package in Windows XP using a simple example which includes a C source code. The foo.c file is located in mypkg/src/foo.c. I used the command Rcmd build --force --binary [pkgpath]. The pr

Re: [Rd] Chunk of text won't show up when compiling Rd file

2009-03-05 Thread Duncan Murdoch
On 05/03/2009 12:29 PM, Ben Bryant wrote: Greetings - I am trying to document the "value" section of a function. The function returns a list, but the list itself also has attributes. I would like to itemize the list entries, and itemize the attributes, but in between I would like to have a sen

[Rd] quantile(), IQR() and median() for factors

2009-03-05 Thread Simone Giannerini
Dear all, from the help page of quantile: "x     numeric vectors whose sample quantiles are wanted. Missing values are ignored." from the help page of IQR: "x     a numeric vector." as a matter of facts it seems that both quantile() and IQR() do not check for the presence of a numeric input. S

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Greg Snow
I see the same problem on Windows XP. But if I run loess with surface='direct' then the results are correct. So it looks like the problem comes from the smoothing/interpolating, not the main loess algorithm. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Uwe Ligges
Mark Difford wrote: Hi Uwe, This is not a problem under Vista, using "a" development version (mine now somewhat outdated). Mark, as others have reported and debugged so far and you can see on the lists, the problem is more serious than I thought it is and it is probably also a problem unde

Re: [Rd] question

2009-03-05 Thread Gabor Grothendieck
I posted this a few years ago (but found I never really had a need for it): http://tolstoy.newcastle.edu.au/R/help/04/06/1430.html On Thu, Mar 5, 2009 at 9:22 AM, ivo welch wrote: > dear R developers:  it is of course easy for a third party to make > suggestions if this third party is both clu

Re: [Rd] Package issue

2009-03-05 Thread Uwe Ligges
Terry, 1. R CMD build on your package reports at least two warnings for me. 2. R CMD check gives dozens of warnings even before the test cases where it already stops in gtest.R rather than anaything called gchol2.R. 3. There is no tests/gchol2.R !!! Perhaps you want to clean up some other i

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Ryan Hafen
On Mar 5, 2009, at 7:59 AM, Prof Brian Ripley wrote: On Thu, 5 Mar 2009, Peter Dalgaard wrote: Prof Brian Ripley wrote: Undortunately the example is random, so not really reproducible (and I see nothing wrong on my Mac). However, Linux valgrind on R-devel is showing a problem: ==3973== Co

[Rd] question

2009-03-05 Thread ivo welch
dear R developers: it is of course easy for a third party to make suggestions if this third party is both clueless and does not put in any work. with these caveats, let me suggest something. The syntax for returning multiple arguments does not strike me as particularly appealing. would it not p

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Mark Difford
Hi Uwe, This is not a problem under Vista, using "a" development version (mine now somewhat outdated). Regards, Mark. sessionInfo() R version 2.9.0 Under development (unstable) (2009-01-22 r47686) i386-pc-mingw32 locale: LC_COLLATE=English_South Africa.1252;LC_CTYPE=English_South Africa.1252

[Rd] Chunk of text won't show up when compiling Rd file

2009-03-05 Thread Ben Bryant
Greetings - I am trying to document the "value" section of a function. The function returns a list, but the list itself also has attributes. I would like to itemize the list entries, and itemize the attributes, but in between I would like to have a sentence or two about the attributes in general

[Rd] problem building a package with C code (PR#13572)

2009-03-05 Thread pfarina
Hi, my name is Paula. Im trying to learn how to build an R package in Windows XP using a simple example which includes a C source code. The foo.c file is located in mypkg/src/foo.c. I used the command Rcmd build --force --binary [pkgpath]. The problem is when I install the zip file in R the funct

[Rd] Package issue

2009-03-05 Thread Terry Therneau
I've converted the bdsmatrix package (used by coxme) to the newer style of S4, and uploaded it. It is in the pkg directory of survival, on r-forge. I'm stuck on something that is almost certainly a namespace issue. I've borrowed liberally from Matrix (a big help) and read the documentation, and

Re: [Rd] heatmap without dendrogams (PR#13512)

2009-03-05 Thread Prof Brian Ripley
Thanks Uwe, I've added your patch to R-devel (2.9.0 to be). On Thu, 19 Feb 2009, lig...@statistik.tu-dortmund.de wrote: j.j.goe...@lumc.nl wrote: Full_Name: Jelle Goeman Version: 2.8.1 OS: Win XP Submission from: (NULL) (87.212.67.197) I get the following error message when I try to make a

Re: [Rd] (PR#13553) wishlist boxplot

2009-03-05 Thread ripley
No objections from Martin or elsewhere, so I have now committed this. Thanks, Uwe. On Tue, 24 Feb 2009, Uwe Ligges wrote: > [CCing Martin and Brian who had both done most svn commits of boxplot.R so > far] > > > A very minor wishlist item that I should have already reported years ago: > > All t

Re: [Rd] Bug in Rdconv(.pm) (PR#13575)

2009-03-05 Thread Prof Brian Ripley
The problem is that \pkg gets included (unescaped) in a Perl substitution, and in modern Perl \p has a meaning (Unicode property). Needs to be escaped/quoted, or the code to work a different way (which is probably preferable). On Thu, 5 Mar 2009, lig...@statistik.tu-dortmund.de wrote: For t

Re: [Rd] methods package

2009-03-05 Thread Therneau, Terry M., Ph.D.
John, > the 2008 book ... I suspected that I had overlooked something simple. This fits the bill. > R 2.8.1 I have been using 2.7. I will update. Thanks for the help. Terry __ R-devel@r-project.org mailing list https://stat.ethz.ch/mai

[Rd] Bug in Rdconv(.pm) (PR#13575)

2009-03-05 Thread ligges
For the record (and as privately discussed with Brian Ripley), happens with all recent versions of R including R-devel from today: Consider a simple a.Rd file containing the lines == \name{a} \title{a} \value{\code{a} \code{\link[a]{a}} \pkg{a} \item{a}{a} }

Re: [Rd] methods package

2009-03-05 Thread John Chambers
Hi Terry, Terry Therneau wrote: I'm working on the next version of coxme, one step of which is converting the bdsmatrix library from Splus to R. Actually, it is a conversion from S4 methods as first described in the Green book to S4 methods as they currently exist. Mostly it's going ok, but

[Rd] Spearman's rank correlation test (PR#13574)

2009-03-05 Thread savicky
Full_Name: Petr Savicky Version: 2.7.2, 2.8.1, 2.9.0 OS: Linux Submission from: (NULL) (147.231.6.9) The p-value of Spearman's rank correlation test is calculated in cor.test(x, y, method="spearman") using algorithm AS 89. However, the way how AS 89 is used incures error, which may be an order

[Rd] persistence of data

2009-03-05 Thread Romain Francois
Hello, I am developing a package that needs data to persist between sessions of R (For example a sqlite database file, or simple dumps of R data with save/load). What I am using so far is : file.path( Sys.getenv( "HOME"), ".R", "myPackage" ) but I was wondering if I am missing an "official"

Re: [Rd] Firefox 3 and HTML Search

2009-03-05 Thread Duncan Murdoch
Firefox 3.0.7 has been released, and it fixes the bug described below. Duncan Murdoch On 1/12/2009 8:22 AM, Duncan Murdoch wrote: On 1/9/2009 11:59 AM, Duncan Murdoch wrote: I finally upgraded to Firefox 3.05 from 2.x, and now I can reproduce a bug a colleague has been complaining about but wh

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Duncan Murdoch
On 3/5/2009 7:10 AM, Prof Brian Ripley wrote: Undortunately the example is random, so not really reproducible (and I see nothing wrong on my Mac). However, Linux valgrind on R-devel is showing a problem: I can reproduce it using y <- sin(x) instead of rnorm(100), on R-patched (not R-devel).

[Rd] Typo in extensions manual (PR#13573)

2009-03-05 Thread therneau
http://streaming.stat.iastate.edu/CRAN/ Writing R extensions Online html version, 3/5/09 Section 1.6.6, second sentence "For instance, the stats package has..." From the context of sentences in the next paragraph I think it should say stats4. Terry T. __

Re: [Rd] Two documentation questions

2009-03-05 Thread Kevin R. Coombes
Prof Brian Ripley wrote: On Wed, 4 Mar 2009, Terry Therneau wrote: [SNIP] 2. In the pdf for the survival package, or at least the one generated by R CMD check, the entries are in a random order. Can I fix this? It makes reading the document to look for errors rather challenging. (That is,

Re: [Rd] R 2.9.0 devel: package installation with configure-args option

2009-03-05 Thread Prof Brian Ripley
I think this should now work (one of several 'FIXME' issues addressed in the latest commit -- there are still some to go, but 2.9.0 is not due for 6 weeks). It is always useful to have a real test example, though. (I used rgl in relation to some discussion about paths on r-sig-mac.) On Tue,

Re: [Rd] documentation questions

2009-03-05 Thread Prof Brian Ripley
I read For printing \dontrun should be a no-op. to mean that it should produce no output, but I suspect you meant you wanted it to pass its argument through verbatim. If we were continuing with the Rdconv.pm I would be suggesting adding some markup for that job (e.g. \verbdontrun), but as

Re: [Rd] documentation questions

2009-03-05 Thread Terry Therneau
You've answered my question 2 about why the manual was in odd order > R CMD check was more of a check of the latex version of the files, not > the final manual. I was looking at the result of R CMD check, and it was in random order (perhaps file date?), not just a different collation choice. Very

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Prof Brian Ripley
On Thu, 5 Mar 2009, Peter Dalgaard wrote: Prof Brian Ripley wrote: Undortunately the example is random, so not really reproducible (and I see nothing wrong on my Mac). However, Linux valgrind on R-devel is showing a problem: ==3973== Conditional jump or move depends on uninitialised value(s) =

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Peter Dalgaard
Prof Brian Ripley wrote: > Undortunately the example is random, so not really reproducible (and I > see nothing wrong on my Mac). However, Linux valgrind on R-devel is > showing a problem: > > ==3973== Conditional jump or move depends on uninitialised value(s) > ==3973==at 0xD76017B: ehg141_ (

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Prof Brian Ripley
Undortunately the example is random, so not really reproducible (and I see nothing wrong on my Mac). However, Linux valgrind on R-devel is showing a problem: ==3973== Conditional jump or move depends on uninitialised value(s) ==3973==at 0xD76017B: ehg141_ (loessf.f:532) ==3973==by 0xD76

Re: [Rd] bug (PR#13570)

2009-03-05 Thread murdoch
Uwe Ligges wrote: > Berwin A Turlach wrote: > >> G'day Peter, >> >> On Thu, 05 Mar 2009 09:09:27 +0100 >> Peter Dalgaard wrote: >> >> >>> rha...@stat.purdue.edu wrote: >>> <> This is a CRITICAL bug!!! I have verified it in R 2.8.1 for mac and for windows. The p

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Duncan Murdoch
Uwe Ligges wrote: Berwin A Turlach wrote: G'day Peter, On Thu, 05 Mar 2009 09:09:27 +0100 Peter Dalgaard wrote: rha...@stat.purdue.edu wrote: <> This is a CRITICAL bug!!! I have verified it in R 2.8.1 for mac and for windows. The problem is with loess degree=0 smoothing. F

Re: [Rd] Two documentation questions

2009-03-05 Thread Prof Brian Ripley
On Wed, 4 Mar 2009, Terry Therneau wrote: 1. I often like to put bits of the output into the manual pages. (We can have a discussion of the value of this elsewhere -- I think it is sometimes a good thing.) I presume you mean in the \examples section of the .Rd files, not elsewhere in the hel

Re: [Rd] bug (PR#13570)

2009-03-05 Thread ligges
Berwin A Turlach wrote: > G'day Peter, > > On Thu, 05 Mar 2009 09:09:27 +0100 > Peter Dalgaard wrote: > >> rha...@stat.purdue.edu wrote: >>> <> >>> >>> This is a CRITICAL bug!!! I have verified it in R 2.8.1 for mac >>> and for windows. The problem is with loess degree=0 smoothing. >>> For exa

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Uwe Ligges
Berwin A Turlach wrote: G'day Peter, On Thu, 05 Mar 2009 09:09:27 +0100 Peter Dalgaard wrote: rha...@stat.purdue.edu wrote: <> This is a CRITICAL bug!!! I have verified it in R 2.8.1 for mac and for windows. The problem is with loess degree=0 smoothing. For example, try the following: x

Re: [Rd] methods package

2009-03-05 Thread ml-it-r-devel
Terry Therneau wrote: > I'm working on the next version of coxme, one step of which is converting > the bdsmatrix library from Splus to R. Actually, it is a conversion from > S4 methods as first described in the Green book to S4 methods as they > currently exist. Mostly it's going ok, but not

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Berwin A Turlach
G'day Peter, On Thu, 05 Mar 2009 09:09:27 +0100 Peter Dalgaard wrote: > rha...@stat.purdue.edu wrote: > > <> > > > > This is a CRITICAL bug!!! I have verified it in R 2.8.1 for mac > > and for windows. The problem is with loess degree=0 smoothing. > > For example, try the following: > > > >

Re: [Rd] problems with nls?

2009-03-05 Thread Prof Brian Ripley
I don't see why this is relevant to R-devel rather than R-help. Your script must be very old: the NEWS for R 1.9.0 said Packages ctest, eda, modreg, mva, nls, stepfun and ts have been merged into stats, and lqs has been returned to MASS. That's 5 years ago now. Function nls() s

Re: [Rd] besselI inaccurate for negative integer order (PR#13556)

2009-03-05 Thread maechler
> "JL" == Jerry Lewis > on Thu, 26 Feb 2009 16:15:11 +0100 (CET) writes: JL> Full_Name: Jerry W. Lewis JL> Version: 2.8.1 JL> OS: Windows XP Professional JL> Submission from: (NULL) (198.180.131.16) JL> It should be the case that JL> besselI(x,-nu) == besselI

[Rd] calling Rf_initEmbeddedR twice gives an error

2009-03-05 Thread Soeren Sonnenburg
Dear all, I've written a R to python/octave/r translator that (so you can call python from R etc and vice versa) enabling you to e.g. call matplotlib which just runs fine on the first command when I do Rf_initEmbeddedR(2, argv); Rf_endEmbeddedR(0); Rf_initEmbeddedR(2, argv); Rf_

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Peter Dalgaard
rha...@stat.purdue.edu wrote: <> This is a CRITICAL bug!!! I have verified it in R 2.8.1 for mac and for windows. The problem is with loess degree=0 smoothing. For example, try the following: x <- 1:100 y <- rnorm(100) plot(x, y) lines(predict(loess(y ~ x, degree=0, span=0.5))) This is

Re: [Rd] bug (PR#13570)

2009-03-05 Thread Thomas Lumley
Could you explain what you are seeing that is wrong? In R 2.7.2, which is what I have here, it looks ok, and the NEWS file doesn't list any changes since 2.7.1. -thomas On Wed, 4 Mar 2009 rha...@stat.purdue.edu wrote: <> This is a CRITICAL bug!!! I have verified it in R 2.8.1 for m