Re: [Rd] package.skeleton does invalide regular name, bis... (PR#12020)

2008-08-07 Thread Prof Brian Ripley
This is already fixed by r46068 | maechler | 2008-07-16 22:34:26 +0100 (Wed, 16 Jul 2008) | 1 line package.skeleton(., code_files) fix name check Not sure when it was submitted On Thu, 7 Aug 2008, [EMAIL PROTECTED] wrote: Hi the list, I guess I find an other bug (the first one is at th

Re: [Rd] Bug repository awakening

2008-08-07 Thread Prof Brian Ripley
I've now tidied up the remaining messages, so there are about 6 new ones (for now -- spam was still arriving as I did this). For a couple of those the attachements will need unpicking and decoding. On Fri, 8 Aug 2008, Peter Dalgaard wrote: Martin Maechler wrote: "PD" == Peter Dalgaard <[EMAI

Re: [Rd] stripchart ignores main title option (PR#12202)

2008-08-07 Thread Prof Brian Ripley
Strictly this is correct: ...: additional parameters passed to the default method, or by it to 'plot' and 'axis' to control the appearance of the plot. Note, not title(), and plot() is called with ann=FALSE. So the fix is to call title() separately. It should now be safe to p

Re: [Rd] (PR#11903 )Rgui.exe(R.dll) crashes when set the locale to

2008-08-07 Thread ripley
On Thu, 3 Jul 2008, [EMAIL PROTECTED] wrote: > Full_Name: Sang Hyun Koh > Version: 2.7.0, 2.7.1 > OS: MS Windows XP, Server 2003 > Submission from: (NULL) (202.30.14.68) > > > Since R 2.7.0 & recent 2.7.1, Rgui.exe crashes on Korean Windows XP and 2003. > > After change the locale language to Japa

Re: [Rd] Bug repository awakening

2008-08-07 Thread Peter Dalgaard
Marc Schwartz wrote: on 08/07/2008 05:23 PM Peter Dalgaard wrote: Martin Maechler wrote: "PD" == Peter Dalgaard <[EMAIL PROTECTED]> on Thu, 07 Aug 2008 11:43:50 +0200 writes: PD> Looks like reports from the last month are trickling PD> in. 170 of them in incoming, but

Re: [Rd] Bug repository awakening

2008-08-07 Thread Marc Schwartz
on 08/07/2008 05:23 PM Peter Dalgaard wrote: Martin Maechler wrote: "PD" == Peter Dalgaard <[EMAIL PROTECTED]> on Thu, 07 Aug 2008 11:43:50 +0200 writes: PD> Looks like reports from the last month are trickling PD> in. 170 of them in incoming, but there's a lot of

Re: [Rd] Bug repository awakening

2008-08-07 Thread Peter Dalgaard
Martin Maechler wrote: "PD" == Peter Dalgaard <[EMAIL PROTECTED]> on Thu, 07 Aug 2008 11:43:50 +0200 writes: PD> Looks like reports from the last month are trickling PD> in. 170 of them in incoming, but there's a lot of PD> spam. I hope Martin's spamfilters are less

[Rd] R 2.7.1 (PR#12510)

2008-08-07 Thread nellem
When I ask R 2.7.1 to read the file below it gives this error message. Whe= n I ask R 2.5.0 to read this same file it runs fine. I think there is a bu= g in 2.7.1. Would you please check this for me. Thanks. Ellen Mitchell symptoms <-readSPSSdata ("D:Documents and Settings/ag diary; total liv

Re: [Rd] dput function (PR#12112)

2008-08-07 Thread Bill Dunlap
By the way, valgrind finally finished checking this example and found no problems after adding the PROTECT(tval). Nor did valgrindless R crash as it did before on this example. -Bill On Thu, 7 Aug 2008, Prof Brian Ripley wrote: > Bill, > > Thanks. Whether or not it is the cause here it should c

Re: [Rd] dput function (PR#12112)

2008-08-07 Thread Prof Brian Ripley
Bill, Thanks. Whether or not it is the cause here it should clearly be PROTECT-ed (I suspect the original version didn't need to be, but leaving PROTECTs off is prejudicial to future maintenance), so I've incorporated this in R-devel/R-patched. Brian On Thu, 7 Aug 2008, Bill Dunlap wrote:

Re: [Rd] Bug repository awakening

2008-08-07 Thread Martin Maechler
> "PD" == Peter Dalgaard <[EMAIL PROTECTED]> > on Thu, 07 Aug 2008 11:43:50 +0200 writes: PD> Looks like reports from the last month are trickling PD> in. 170 of them in incoming, but there's a lot of PD> spam. I hope Martin's spamfilters are less leaky that PD> ours, s

Re: [Rd] dput function (PR#12112)

2008-08-07 Thread Bill Dunlap
On Thu, 7 Aug 2008 [EMAIL PROTECTED] wrote: > Full_Name: Juan Gea > Version: R version 2.6.2 > OS: Fedora Core 6 > Submission from: (NULL) (79.153.48.49) > > Abort: > > objeS <- matrix("AAA",100) > class(objeS) > outTxt <- textConnection("vaClob", open = "w", local = FALSE) > dput(objeS,outTx

Re: [Rd] string comparison

2008-08-07 Thread Duncan Murdoch
On 8/7/2008 11:20 AM, Prof Brian Ripley wrote: It is not safe to rely on pointer comparisons until R 2.8.0. Currently it is easy to get CHARSXPs that are not in the cache: it is not impossible in 2.8.0, but you have to know how to 'break and enter'. In your code you are comparing a CHARSXP an

Re: [Rd] Numerical optimisation and "non-feasible" regions

2008-08-07 Thread Patrick Burns
If I understand your proposal correctly, then it probably isn't a good idea. A derivative-based optimization algorithm is going to get upset whenever it sees negative infinity. Genetic algorithms, simulated annealing (and I think Nelder-Mead) will be okay when they see infinity but if all infeasi

Re: [Rd] '"ts" treated as a registered S3 class, but keep its "structure" behaviour' ?

2008-08-07 Thread John Chambers
Yohan Chalabi wrote: Dear all, In R-devel I have noticed the new approach for the "ts" class in the package "methods". the "structure" behaviour of "ts" is not always kept when one uses "ts" objects and objects of classes which extend the virtual class "structure". As a short example: ## this

Re: [Rd] string comparison

2008-08-07 Thread Prof Brian Ripley
It is not safe to rely on pointer comparisons until R 2.8.0. Currently it is easy to get CHARSXPs that are not in the cache: it is not impossible in 2.8.0, but you have to know how to 'break and enter'. In your code you are comparing a CHARSXP and a SYMSXP. You want to use charChance = mkCha

[Rd] string comparison

2008-08-07 Thread Kjell Konis
Hi, I have a package where I do things like this a lot: if(strncmp(CHAR(asChar(Scategory)), "chance", 6) == 0) category = h_category_chance; else if(strncmp(CHAR(asChar(Scategory)), "utility", 7) == 0) category = h_category_utility; else if(strncmp(CHAR(asChar(Scategory)), "decisio

[Rd] '"ts" treated as a registered S3 class, but keep its "structure" behaviour' ?

2008-08-07 Thread Yohan Chalabi
Dear all, In R-devel I have noticed the new approach for the "ts" class in the package "methods". the "structure" behaviour of "ts" is not always kept when one uses "ts" objects and objects of classes which extend the virtual class "structure". As a short example: ## this works fine setClass("f

Re: [Rd] problems with plotting of graphNEL (PR#11993)

2008-08-07 Thread Martin Morgan
Hi Christian -- [EMAIL PROTECTED] writes: > Full_Name: Christian Kuehnert > Version: 2.7.1 > OS: Windows XP > Submission from: (NULL) (91.14.237.109) > > > Hello, > > I've installed the package RBGL (and XML and Rgraphviz) and tried to follow > the > examples in the RBGL-manual > > http://bioc

Re: [Rd] Package Installer Unable to access packages (PR#12026)

2008-08-07 Thread Duncan Murdoch
On 07/08/2008 5:34 AM, [EMAIL PROTECTED] wrote: Full_Name: Lawrence Jack Winkler Version: 2.7.1 OS: OSX Leopard 10.5.4 Submission from: (NULL) (216.170.232.85) I receive the following error when attempting to Get List of packages in the Package Installer GUI interface: Warning: unable to acces

[Rd] incorrect usage of glmer crashes R (PR#12375)

2008-08-07 Thread susscorfa
Full_Name: susscorfa Version: 2.7.1 OS: ubuntu Submission from: (NULL) (129.125.177.31) Incorrect implementation of the grouping variable in the function glmer crashes R a small example: require(lme4); a<-data.frame(b=rpois(1000,10), c=gl(20,50), d=rnorm(1000,3), e=rnorm(1000,5), f=rnorm(1000,

[Rd] qgamma inaccuracy (PR#12324)

2008-08-07 Thread skylab . gupta
Full_Name: Version: 2.7.1 (2008-06-23) OS: windows vista Submission from: (NULL) (216.82.144.137) Hello, I have been working with various probability distributions in R, and it seems the gamma distribution is inaccurate for some inputs. For example, qgamma(1e-100, 5e-101, lower.tail=FALSE) giv

[Rd] Cairo bitmap output should work without X11 dependency (PR#12218)

2008-08-07 Thread cruff
Full_Name: Craig Ruff Version: 2.7.1 OS: Irix 6.5.30 Submission from: (NULL) (128.117.8.145) Cairo based bitmap graphics output should work if cairo and R have been compiled without xlib support. 2.7.1 gives the "X11 is not available" message in this case when run interactively, and from my read

[Rd] Bug for the package "ada" (PR#12126)

2008-08-07 Thread song84030
Full_Name: Song Qifan Version: 2.7.0 OS: Windowa Xp Submission from: (NULL) (58.207.200.53) When I used the package "ada" to realize a boosting algorithm, there occures a bug. I use the function "ada" to produce a ada object from the training data. After that, I use the function "predict.ada" to

[Rd] dput function (PR#12112)

2008-08-07 Thread juangea
Full_Name: Juan Gea Version: R version 2.6.2 OS: Fedora Core 6 Submission from: (NULL) (79.153.48.49) Abort: objeS <- matrix("AAA",100) class(objeS) outTxt <- textConnection("vaClob", open = "w", local = FALSE) dput(objeS,outTxt) close(outTxt) R version 2.6.2 (2008-02-08) Copyright (C)

[Rd] Package Installer Unable to access packages (PR#12025)

2008-08-07 Thread winkllj
Full_Name: Lawrence Jack Winkler Version: 2.7.1 OS: OSX Leopard 10.5.4 Submission from: (NULL) (216.170.232.85) I receive the following error when attempting to Get List of packages in the Package Installer GUI interface: Warning: unable to access index for repository http://www.stathy.com/cran/

[Rd] Compile error on src/main/platform.c (PR#11988)

2008-08-07 Thread pnorbert
Full_Name: Norbert Podhorszki Version: 2.7.0 OS: RHEL4 Submission from: (NULL) (160.91.210.37) Using PGI 6.2.5 compiler instead of gcc, there is no HAVE_GLOB defined for compilation (on our machine). The function do_unlink(...) in src/main/platform.c (lines 1368-1410) will have an unclosed if st

[Rd] Package Installer Unable to access packages (PR#12026)

2008-08-07 Thread winkllj
Full_Name: Lawrence Jack Winkler Version: 2.7.1 OS: OSX Leopard 10.5.4 Submission from: (NULL) (216.170.232.85) I receive the following error when attempting to Get List of packages in the Package Installer GUI interface: Warning: unable to access index for repository http://www.stathy.com/cran/

[Rd] bug in primes() function in the schoolmath package (PR#11957)

2008-08-07 Thread tacarey
I recently downloaded the R schoolmath package and found a bug in the "primes" function. I'm not sure if it has been reported or not. I tried to report it to the maintainer, but the email address listed was no longer available. Anyway ... If you run the example from the document *primes(12,150)

[Rd] Bug in placement of legend with title when xlim is decreasing (PR#12019)

2008-08-07 Thread candrews
Full_Name: Chris Andrews Version: 2.7.1 OS: Windows Submission from: (NULL) (74.92.48.53) The following code shows that the legend is misplaced when a title is included AND xlim specifies a decreasing x axis. -- matplot(1:5, matrix(rnorm(5*3), nrow=5), type="l", col=1:3, lty=1, lwd=

[Rd] Fitted values with small weights in lm.wfit (PR#11979)

2008-08-07 Thread ablocker
Full_Name: Alexander Blocker Version: 2.7.1 OS: Ubuntu 8.04 / Windows XP Submission from: (NULL) (76.119.235.225) When running lm(modeleq, weights=wt, data=dataset) with small weights (<1e-10), I have encountered an odd phenomenon with fitted values. Due to numerical precision issues, the fitted

[Rd] Kernlab, ksvm, class.weights, prob.model = TRUE (PR#11971)

2008-08-07 Thread renriquez
Full_Name: Ramón Enríquez Gabeiras Version: 2.7.0 OS: Windows 32 Submission from: (NULL) (193.110.154.163) For unbalanced problems, if you provide class.weights parameters (i.e class.weights = c("1" = 80, "0"= 20), prob.model = TRUE) always return the error ... If you try with prob.model = FALS

[Rd] stripchart ignores main title option (PR#12202)

2008-08-07 Thread j . curran
Full_Name: James Curran Version: 2.7.1 OS: Windows XP/Vista Submission from: (NULL) (130.216.51.81) stripchart ignores the main title option. For example, in the documentation stripchart(decrease ~ treatment, main = "stripchart(OrchardSprays)", vertical = TRUE, log = "y"

[Rd] problems with plotting of graphNEL (PR#11993)

2008-08-07 Thread christiankuehnert
Full_Name: Christian Kuehnert Version: 2.7.1 OS: Windows XP Submission from: (NULL) (91.14.237.109) Hello, I've installed the package RBGL (and XML and Rgraphviz) and tried to follow the examples in the RBGL-manual http://bioconductor.org/packages/2.2/bioc/vignettes/RBGL/inst/doc/RBGL.pdf Bu

Re: [Rd] Numerical optimisation and "non-feasible" regions

2008-08-07 Thread Mathieu Ribatet
Dear Patrick (and other), Well I used the Sylvester's criteria (which is equivalent) to test for this. But unfortunately, this is not the only issue! Well, to sum up quickly, it's more or less like geostatistics. Consequently, I have several unfeasible regions (covariance, margins and others).

[Rd] Rgui.exe(R.dll) crashes on startup when locale is set to Korean (PR#11974)

2008-08-07 Thread juneaftn
Full_Name: June Kim Version: 2.7.0 OS: Windows XP SP3 Submission from: (NULL) (220.117.151.228) R 2.7.0 and up(including 2.7.1) crashes on the startup on Korean Windows XP. All versions before R 2.7.0 worked without a problem on the same machine. It seems like related to the locale setting. se

Re: [Rd] Numerical optimisation and "non-feasible" regions

2008-08-07 Thread Patrick Burns
If the positive definiteness of the covariance is the only issue, then you could base a penalty on: eps - smallest.eigen.value if the smallest eigen value is smaller than eps. Patrick Burns [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Un

Re: [Rd] Bug in rnorm? (PR#12016)

2008-08-07 Thread Thierry . ONKELINX
That's not a bug. It's FAQ 7.31 Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, method

Re: [Rd] memory leak in sub("[range]", ...) when #ifndef _LIBC (PR#12488)

2008-08-07 Thread ripley
For the record: this is now fixed. On Thu, 7 Aug 2008, [EMAIL PROTECTED] wrote: > Full_Name: Bill Dunlap > Version: R version 2.8.0 Under development (unstable) (2008-07-05 r46037) > OS: Linux > Submission from: (NULL) (76.28.245.14) > > > valgrind finds some memory leaks in R when I use sub() wi

[Rd] Methods for format() are not consistent with NA values (PR#12385)

2008-08-07 Thread Gregor . Gorjanc
Hi! Methods for format() are not consistent when applied to vectors having NA values. Some methods encode NA values to "NA" by default, while other do not. It would be much more easier to write other functions if these functions would all behave consistently. Examples produced with R > version

Re: [Rd] sapply(Date, is.numeric) (PR#12239)

2008-08-07 Thread maechler
> "RobMcG" == McGehee, Robert <[EMAIL PROTECTED]> > on Tue, 29 Jul 2008 15:40:37 -0400 writes: RobMcG> FYI, RobMcG> I've tried posting the below message twice to the bug tracking system, [... r-bugs problems discussed in a separate thread ] RobMcG> R-devel

[Rd] Bug in format.default(): na.encode does not have any effect for (PR#12318)

2008-08-07 Thread Gregor . Gorjanc
Hi! If I use format() on numeric vector, na.encode argument does not have any e= ffect. This was reported before: - https://stat.ethz.ch/pipermail/r-help/2007-October/143881.html - http://tolstoy.newcastle.edu.au/R/e2/devel/06/09/0360.html It works for other (say character) classes! > format(c("

Re: [Rd] sapply(Date, is.numeric) (PR#12244)

2008-08-07 Thread ripley
On Wed, 30 Jul 2008, Martin Maechler wrote: >> "RobMcG" == McGehee, Robert <[EMAIL PROTECTED]> >> on Tue, 29 Jul 2008 15:40:37 -0400 writes: > >RobMcG> FYI, >RobMcG> I've tried posting the below message twice to the bug tracking > system, > >[... r-bugs problems discus

[Rd] sapply(Date, is.numeric) (PR#12221)

2008-08-07 Thread Robert . McGehee
FYI,=20 I've tried posting the below message twice to the bug tracking system, once by email (below), and the second time 5 days later directly to the bugs.r-project.org website. As far as I can tell, the bug tracking system hasn't picked this up. Also it looks like the latest "incoming" bug is dat

Re: [Rd] Numerical optimisation and "non-feasible" regions

2008-08-07 Thread Mathieu Ribatet
Thanks Ben for your tips. I'm not sure it'll be so easy to do (as the non-feasible regions depend on the model parameters), but I'm sure it's worth giving a try. Thanks !!! Best, Mathieu Ben Bolker a écrit : Mathieu Ribatet epfl.ch> writes: Dear list, I'm currently writing a C code to

Re: [Rd] sapply(Date, is.numeric) (PR#11982)

2008-08-07 Thread Prof Brian Ripley
For the record: this is now fixed. On Thu, 7 Aug 2008, [EMAIL PROTECTED] wrote: R-developers, The results below are inconsistent. From the documentation for is.numeric, I expect FALSE in both cases. x <- data.frame(dt=3DSys.Date()) is.numeric(x$dt) [1] FALSE sapply(x, is.numeric) dt TRU

Re: [Rd] Bug in rnorm? (PR#12016)

2008-08-07 Thread ONKELINX, Thierry
That's not a bug. It's FAQ 7.31 Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, method

Re: [Rd] memory leak in sub("[range]", ...) when #ifndef _LIBC (PR#11946)

2008-08-07 Thread Prof Brian Ripley
For the record: this is now fixed. On Thu, 7 Aug 2008, [EMAIL PROTECTED] wrote: Full_Name: Bill Dunlap Version: R version 2.8.0 Under development (unstable) (2008-07-05 r46037) OS: Linux Submission from: (NULL) (76.28.245.14) valgrind finds some memory leaks in R when I use sub() with a range

Re: [Rd] sapply(Date, is.numeric) (PR#12008)

2008-08-07 Thread Prof Brian Ripley
For the record: this is now fixed. On Thu, 7 Aug 2008, [EMAIL PROTECTED] wrote: Full_Name: Robert McGehee Version: 2.7.1 OS: Windows Submission from: (NULL) (192.223.226.6) R-developers, The results below seem inconsistent. From the documentation for is.numeric, I expect FALSE in both cases.

[Rd] Bug repository awakening

2008-08-07 Thread Peter Dalgaard
Looks like reports from the last month are trickling in. 170 of them in incoming, but there's a lot of spam. I hope Martin's spamfilters are less leaky that ours, so that they get killed en route to r-devel -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- D

Re: [Rd] Bug in rnorm? (PR#12016)

2008-08-07 Thread Prof Brian Ripley
Try printing floor(100*.29): you have forgotten about representation error. From the help page: n: number of observations. If 'length(n) > 1', the length is taken to be the number required. and you asked for (just) less than 29 observations, and got what you asked for. On

[Rd] package.skeleton does invalide regular name, bis... (PR#12020)

2008-08-07 Thread cgenolin
Hi the list, I guess I find an other bug (the first one is at the end off this mail) in package.skeleton. It occurs when we give as code_file some file that are not in the current directories. If we give a single file to code_file (like code_file=3D"riri/fifi.R"), it does not reconize fifi.R a

[Rd] Bug in rnorm? (PR#12016)

2008-08-07 Thread paul . eckermann
Full_Name: Paul Eckermann Version: 2.7.1 OS: Windows XP Service Pack 2 Submission from: (NULL) (129.127.183.12) This is the first time I have submitted a bug report, so apologies if I have not followed the correct protocol. If I enter length(rnorm(100*.29)) it returns 28 rather than 29. y<-(1

[Rd] sapply(Date, is.numeric) (PR#11982)

2008-08-07 Thread Robert . McGehee
R-developers, The results below are inconsistent. From the documentation for is.numeric, I expect FALSE in both cases. > x <- data.frame(dt=3DSys.Date()) > is.numeric(x$dt) [1] FALSE > sapply(x, is.numeric) dt TRUE ## Yet, sapply seems aware of the Date class > sapply(x, class) dt "Date" Tha

[Rd] sapply(Date, is.numeric) (PR#12008)

2008-08-07 Thread robert . mcgehee
Full_Name: Robert McGehee Version: 2.7.1 OS: Windows Submission from: (NULL) (192.223.226.6) R-developers, The results below seem inconsistent. From the documentation for is.numeric, I expect FALSE in both cases. > x <- data.frame(dt=Sys.Date()) > is.numeric(x$dt) [1] FALSE > sapply(x, is.numeri

[Rd] When a tests/*.R file is run, the package should automatically be loaded (PR#11950)

2008-08-07 Thread timhesterberg
Suppose that a package "foo" contains a tests directory with a number of *.R files. Currently, each of the .R files must begin with library("foo") or the library is not loaded. I suggest that the package be loaded automatically (at the beginning of each file, or before any of the files are ru

[Rd] memory leak in sub("[range]", ...) when #ifndef _LIBC (PR#11946)

2008-08-07 Thread bill
Full_Name: Bill Dunlap Version: R version 2.8.0 Under development (unstable) (2008-07-05 r46037) OS: Linux Submission from: (NULL) (76.28.245.14) valgrind finds some memory leaks in R when I use sub() with a range in the regular expression: % R --debugger=valgrind --debugger-args=--leak-check=fu