Re: [Rd] Suggestion: help()

2005-06-07 Thread Thomas Lumley
On Tue, 7 Jun 2005, Henrik Bengtsson wrote: Kurt Hornik wrote: How would this be different from the results of help(package = ) ? Thanks for that. I was not aware of this one; I like how DESCRIPTION is included and how the index is divided in functions and dataset, e.g. help(pack

RE: [Rd] segfault on large number of open brackets (PR#7859)

2005-05-12 Thread Thomas Lumley
__ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED] University of Washington, Seattle __ R-devel@s

Re: [Rd] Problem with pbirthday (PR#7837)

2005-05-04 Thread Thomas Lumley
On Wed, 4 May 2005 [EMAIL PROTECTED] wrote: It seems to me that the line in the function if (n > classes) return(1) is only relevant to the default case of coincident = 2. (Naturally, if there are more people than classes, then at least one class must contain 2 people). Yep, looks like a bug to me.

Re: [Rd] "wild" function example in optim

2005-04-26 Thread Thomas Lumley
On Tue, 26 Apr 2005, Werner Bier wrote: Dear all, Firstly, I do apologize if my question is simple and posted in the wrong place but I had no reply from the R-help mailing list (maybe it is too simple!). I was wondering why parscale is set to 20 in the "wild" function example used in ?optim. Th

Re: [Rd] Speeding up library loading

2005-04-25 Thread Thomas Lumley
On Mon, 25 Apr 2005, Duncan Murdoch wrote: Ali - wrote: Is it possible to break the package into multiple parts, perhaps like a bundle? Then you could only load the parts that you need at any particular time. It could be done, but the question is, what if one of the packages in the bundle dep

Re: [Rd] Suggestions for manipulating formula objects

2005-04-20 Thread Thomas Lumley
On Wed, 20 Apr 2005 [EMAIL PROTECTED] wrote: I'm trying to manipulate/change a formula prior to passing it to another function. A simplified example: User passes formula to my function: y~x My function does: lm(transform(y)~x) Here, transform() is added to the model's response. What is the best wa

Re: [Rd] complex tangent (PR#7781)

2005-04-07 Thread Thomas Lumley
On Thu, 7 Apr 2005 [EMAIL PROTECTED] wrote: static void z_tan(Rcomplex *r, Rcomplex *z) { double x2, y2, den; x2 = 2.0 * z->r; y2 = 2.0 * z->i; den = cos(x2) + cosh(y2); r->r = sin(x2)/den; /* any limit above about log(DBL_EPSILON) will do */ if (fabs(r->i) < 40.0) You need z->

Re: [Rd] a couple of things about ":"

2005-04-07 Thread Thomas Lumley
On Thu, 7 Apr 2005, Liaw, Andy wrote: - It seems counter-intuitive to allow non-integer values as operand for ":". It also seems a bit odd that 1:2 returns something with storage.mode integer, whereas 0.5:2 gives doubles. Would it make sense to disallow non-integer operands to ":"? I can't think

Re: [Rd] about mantelhaen.test (PR#7779)

2005-04-07 Thread Thomas Lumley
6,4,6,7,3,4,2,4,12,15,14,13,9,3,8,6,1,2,3,4), dim = c(4,3,4)) mh.test(x) Statistic dfp-value Nonzero Correlation 6.34043 1 0.01180163 Row Mean Scores Differ 6.59013 3 0.08617498 General Association 10.59828 6 0.10161441 __

Re: [Rd] strange error with rw2010dev

2005-03-28 Thread Thomas Lumley
On Mon, 28 Mar 2005, Kjetil Brinchmann Halvorsen wrote: testmat <- matrix(1:80, 20,4) dim(testmat) [1] 20 4 str(testmat) int [1:20, 1:4] 1 2 3 4 5 6 7 8 9 10 ... testframe <- data.frame(testmat=I(testmat), x=rnorm(20), y=rnorm(20), z=sample(1:20)) str(testframe) `data.frame': 20 obs. of 4 var

Re: [Rd] Trigonometric functions (PR#7728)

2005-03-15 Thread Thomas Lumley
On Wed, 16 Mar 2005, Peter Kleiweg wrote: Thomas Lumley schreef op de 15e dag van de lentemaand van het jaar 2005: x<-sqrt(2) asin(x^2-1) result in: NaN Because you can't take the arcsin of 2^2-1=3. Wrong answer. You're right. It's actually because you can't take the arcs

Re: [Rd] Trigonometric functions (PR#7728)

2005-03-15 Thread Thomas Lumley
On Wed, 16 Mar 2005 [EMAIL PROTECTED] wrote: Why does asin(1) result in: 1.570796 Because the arcsin of 1 is pi/2 radians. and x<-sqrt(2) asin(x^2-1) result in: NaN Because you can't take the arcsin of 2^2-1=3. -thomas __ R-devel@stat.math.ethz.ch

Re: [Rd] double/integer (PR#7687)

2005-02-11 Thread Thomas Lumley
On Fri, 11 Feb 2005 [EMAIL PROTECTED] wrote: Full_Name: Chris Spencer Version: 2.0.1 OS: Linux Submission from: (NULL) (163.1.211.93) Dear R team, I realise that the following is a bit unsafe (the combination of doubles and integers), however I wondered whether the following behaviour is expected:

RE: [Rd] Very Long Expressions

2005-01-24 Thread Thomas Lumley
On Mon, 24 Jan 2005, Prof Brian Ripley wrote: On Mon, 24 Jan 2005, McGehee, Robert wrote: [Instructions to the R developers deleted.] Secondly, the ?options help (thanks for everyone who reminded me about this), says that expressions can have values between 25...10. However, if the original exa

RE: [Rd] Should NEVER happen;

2005-01-19 Thread Thomas Lumley
evices, package:utils, package:datasets, Autoloads, package:base Respectfully, Jeroen __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

[Rd] DSC 2005

2005-01-12 Thread Thomas Lumley
On Wed, 12 Jan 2005, Marc Schwartz wrote to r-help: I have not seen anything posted yet for DSC 2005, unless I missed it someplace. DSC 2005 will be held in Seattle, at the University of Washington, August 13-15. This date is immediately after the Joint Statistical Meetings, and was chosen for t

Re: [Rd] Standalone Mathlib, C++ and ISNAN()

2005-01-08 Thread Thomas Lumley
On Sun, 9 Jan 2005, Bill Northcott wrote: Does this mean the changes will be in the current daily builds? I presume the function involved is now in the standalone Rmath build. The function is available for the standalone Rmath library and also linking to R. I'm not sure when the daily snapshot ge

Re: [Rd] Standalone Mathlib, C++ and ISNAN()

2005-01-08 Thread Thomas Lumley
is a macro on my Mac laptop but a function on my Linux desktop. R-devel now defines ISNAN to call a function if used in C++ code. It still calls isnan in C code. -thomas Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED] University of Washington, Se

Re: [Rd] Standalone Mathlib, C++ and ISNAN()

2005-01-05 Thread Thomas Lumley
On Thu, 6 Jan 2005, Bill Northcott wrote: On 06/01/2005, at 6:53 AM, Thomas Lumley wrote: I believe (with a little Googling) the suggested C++ approach is to use std::isnan if is included. I tried that too, but without any success. I even tried __gnu_cxx::isnan. It was suggested by one of the

Re: [Rd] Standalone Mathlib, C++ and ISNAN()

2005-01-05 Thread Thomas Lumley
for which isnan() is a macro, the code breaks at compile time with 'isnan() undeclared'. I believe (with a little Googling) the suggested C++ approach is to use std::isnan if is included. -thomas Thomas Lumley Assoc. Professor, Biostatistics [EMAIL

Re: [Rd] Standalone Mathlib, C++ and ISNAN()

2005-01-05 Thread Thomas Lumley
On Wed, 5 Jan 2005, Bill Northcott wrote: If building against a full R library, one might possible use R_IsNaN instead but this function is not included in libRmath v2.0 and the function R_IsNaNorNA which was used in libRmath v1.9 no longer exists Yes, but in your standalone C or C++ code you ca

Re: [Rd] Option for "Delete downloaded files (y/N)?" in install.packages()

2005-01-04 Thread Thomas Lumley
On Wed, 5 Jan 2005, Gorjanc Gregor wrote: Hello! I have a wish/proposal. Is it possible to include some option in install.packages() for Delete downloaded files (y/N)? at the end of that process. It can be quite anoying if you must install several packages and wait meanwhile to type y/n for each pa

Re: [Rd] optim/vmmin and R_alloc

2004-12-31 Thread Thomas Lumley
On Fri, 31 Dec 2004, [iso-8859-1] Göran Broström wrote: Regarding 2., I tried the combination vmaxget + Calloc + vmaxset, ie, I began my function with vmax = vmaxget() and ended it with vmaxset(vmax). The point with this is that you can free all allocated memory with one call instead of repeated ca

Re: [Rd] optim/vmmin and R_alloc

2004-12-30 Thread Thomas Lumley
On Thu, 30 Dec 2004, [iso-8859-1] Göran Broström wrote: On Thu, Dec 30, 2004 at 08:01:41AM -0800, Thomas Lumley wrote: On Thu, 30 Dec 2004, [iso-8859-1] Göran Broström wrote: However, and that is my question/suggestion: Why not use Calloc+Free instead of R_alloc in vmmin (and maybe in other places

Re: [Rd] optim/vmmin and R_alloc

2004-12-30 Thread Thomas Lumley
On Thu, 30 Dec 2004, [iso-8859-1] Göran Broström wrote: However, and that is my question/suggestion: Why not use Calloc+Free instead of R_alloc in vmmin (and maybe in other places)? I made the changes in 'optim.c' in the functions 'vmmin' and 'Lmatrix'. Then I rebuilt and reinstalled R-2.0.1. The r

Re: [Rd] is.vector(...) <-> is(..., "vector")

2004-12-30 Thread Thomas Lumley
ot;, "vector") I'm working with R Version 2.0.1 Patched (2004-12-09) on Windows 2000. Thanks, for any comments! Matthias ______ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel Thomas Lu

Re: [Rd] Modulus Bug (PR#7409)

2004-12-09 Thread Thomas Lumley
On Thu, 9 Dec 2004 [EMAIL PROTECTED] wrote: This is nothing to do with integers: 1e18 and 11 are doubles here. It is a result of rounding error: 1e18/11 is not representable accurately, and this should have been a warning to you that your calculations were unreasonable. It was -- the poster origina

Re: [Rd] RFC: Different handling of commands from clipboard in Windows Re: [R] how to pause between plots running scripts?

2004-11-29 Thread Thomas Lumley
On Sun, 28 Nov 2004, Duncan Murdoch wrote: Another that deals only with the original graphics problem is to have par(ask=T) wait for input to the graphics window, rather than to the console. This has the advantage that the graphics window probably has the focus, so a simple Enter there could satis

Re: [Rd] user error described in the FAQ (was [BUG?] xyplot in loop does not work)

2004-11-22 Thread Thomas Lumley
inefficient. I guess this FAQ-entry about fully intuitive behaviour of xyplot came last year, right? Well, the behaviour predates the R implementation and is described in help(xyplot). Obviously no-one except you thinks it it fully intuititve, or it wouldn't be in the FAQ. -thomas T

Re: [Rd] Re: [R] changing (core) function argument defaults?

2004-11-17 Thread Thomas Lumley
On Wed, 17 Nov 2004, Tony Plate wrote: Just to add to Thomas Lumley suggestion: it's generally a good idea to call a wrapper function it by a different name. This is generally good advice. However, if you want your graphics device started automatically when you plot, it either has to hav

[Rd] Re: [R] changing (core) function argument defaults?

2004-11-17 Thread Thomas Lumley
Restricted to r-devel (it is almost never appropriate to send the same message to both lists). On Thu, 18 Nov 2004, RenE J.V. Bertin wrote: >From: Patrick Connolly <[EMAIL PROTECTED]> >To: "RenE J.V. Bertin" <[EMAIL PROTECTED]> >Subject: Re: [R] changing (core) function argument defaults? >Date:

Re: [Rd] foreign(read.spss) in rw2000 and re2001beta

2004-11-06 Thread Thomas Lumley
On Sat, 6 Nov 2004, Peter Dalgaard wrote: Thomas Lumley <[EMAIL PROTECTED]> writes: I have modified read.spss (but not committed the changes yet) so that it does not create a factor when there are missing levels. Hmm, could we handle this more elegantly? At the very least, we should probab

Re: [Rd] foreign(read.spss) in rw2000 and re2001beta

2004-11-06 Thread Thomas Lumley
On Sat, 6 Nov 2004, Peter Dalgaard wrote: Kjetil Brinchmann Halvorsen <[EMAIL PROTECTED]> writes: I made a test file test.sav with SPSS version 11.5.1 containing only one numeric variable, with a value label for one value not occuring in the file. According to ?read.spss this should result in a fac

Re: [Rd] wishlist: better error message in R CMD check

2004-11-06 Thread Thomas Lumley
On Sat, 6 Nov 2004, Gabor Grothendieck wrote: I was running R CMD check on Windows XP 2.0.1beta and got this: Error in parse(file, n, text, prompt) : syntax error on 602 After a lot of aggravation I finally discovered that if I did this: copy *.R allofthem.R and checked line 602 in allofthem.R that

Re: [Rd] 2.0.1 countdown

2004-11-04 Thread Thomas Lumley
On Thu, 4 Nov 2004, Gabor Grothendieck wrote: How does one easily find out if one's favorite bugs have been fixed? Does the CHANGES file list them all or is there a more authoritative source? A bug that was fixed because it was reported should be listed with its PR# in the NEWS file. If a change

Re: [Rd] requirements for a GPL

2004-11-03 Thread Thomas Lumley
with permission from the Mayo Foundation for Medical Education and Research, who are the real copyright owners of Dr Therneau's code. -thomas Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED] University of Washingto

Re: [Rd] <<- (PR#7313)

2004-10-25 Thread Thomas Lumley
On Mon, 25 Oct 2004 [EMAIL PROTECTED] wrote: Full_Name: Boris Vaillant Version: 2.0 OS: Win 2000 Submission from: (NULL) (195.227.11.98) ##Maybe I have not fully understood the changements ##in R 2.0. ## Why is it that a <- 1:3 names(a) <- 1:3 # works fine, but b <<- 1:3 names(b) <<- 1:3 ## used to

[Rd] Re: R2.0.0 bug in function vcov in library survival (PR#7266)

2004-10-06 Thread Thomas Lumley
On Wed, 6 Oct 2004, Prof Brian Ripley wrote: On Wed, 6 Oct 2004, Thomas Lumley wrote: No, they haven't been updated to cope with lazy loading (they are defined in a top-level if statement to prevent conflicts in older versions of R). vcov.coxph is actually vcov.coxph<-function

[Rd] R2.0.0 bug in function vcov in library survival (PR#7266)

2004-10-06 Thread Thomas Lumley
On Wed, 6 Oct 2004, Prof Brian Ripley wrote: Those vcov methods were removed from stats at 2004-08-28 20:40:13 +0100 survival now has vcov.{coxph,survreg} Looks like they have been removed from survival since: that is where they should be. They are very simple -- vcov.coxph <- vcov.survreg <- func

Re: [Rd] idea for "virtual matrix/array" class

2004-08-23 Thread Thomas Lumley
On Mon, 23 Aug 2004, Tony Plate wrote: > > One idea I was thinking about was to have a new class of object that > referred to data in a file on disk, and which had all the standard methods > of matrices and arrays, i.e., subsetting ("["), dim, dimnames, etc. The > object in memory would only store

Re: [Rd] Installing package lattice

2004-08-23 Thread Thomas Lumley
On Mon, 23 Aug 2004, Jeff Gentry wrote: > > Here's another issue (that might well be operator error): > > > install.packages("lattice") > > ... > ... > ** save image > Loading required package: grid > Error in importIntoEnv(impenv, impnames, ns, impvars) : > object(s) 'dev.list', 'cm.color

Re: [Rd] existence of easy example of .Call??

2004-07-30 Thread Thomas Lumley
On Fri, 30 Jul 2004 [EMAIL PROTECTED] wrote: > Dear R-develers, > > I have been seraching in vain for an example of source-code, using .Call, to > call an R-function from within C. > Am also wondering i this .Call command works for all functions, say if I > write a function analyse<-function() > w

Re: [Rd] aov for unbalanced design (PR#7144)

2004-07-29 Thread Thomas Lumley
46 0.0008612 *** > Residuals 31 1464674 47248 > --- > Signif. codes: 0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1 > > ______ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.

Re: [Rd] regarding saving R graphis images directly to directory

2004-06-20 Thread Thomas Lumley
On Sun, 20 Jun 2004, Dirk Eddelbuettel wrote: > On Sun, Jun 20, 2004 at 01:18:47PM -0700, SAURIN wrote: > > Dear R, > > > > I am student at University of new haven, CT.I am trying to run my R scripts where > > I don't have > > X11() authentication to my account. I run those R scripts and when I g

RE: [Rd] Copyright issues question

2004-06-16 Thread Thomas Lumley
Do we have to obtain the > >> > agreement of the R Core Team? > >> > > Thomas Lumley answered: > > >It might also be worth pointing out that the R Core Team's agreement is > >neither necessary nor sufficient. The GPL permits whatever it permits, > >a

Re: [Rd] Copyright issues question

2004-06-14 Thread Thomas Lumley
On Mon, 14 Jun 2004, Peter Dalgaard wrote: > Eric Lecoutre <[EMAIL PROTECTED]> writes: > > > > > What sort of exact problems can we expect to have? Should we consider > > to propose this as Open Source and not GPL? Do we have to obtain the > > agreement of the R Core Team? > It might also be wort

Re: [Rd] plot functions, formula interfaces and NAs

2004-05-03 Thread Thomas Lumley
On Mon, 3 May 2004, Prof Brian Ripley wrote: > I believe no function should be using getOption("na.action") without a > means to override it, and thus the formula methods of > > boxplot, mosaicplot and pairs > > should get an na.action argument. Further, since in all cases the > non-formula meth

Re: [Rd] Generating Lognormal Random variables (PR#6843)

2004-05-01 Thread Thomas Lumley
On Sat, 1 May 2004 [EMAIL PROTECTED] wrote: > On Sat, 1 May 2004 17:00:28 +0200 (CEST), [EMAIL PROTECTED] wrote: > > >Full_Name: Anthony Gichangi > >Version: 1.90 > >OS: Windows XP Pro > >Submission from: (NULL) (130.225.131.206) > > > > > >The function rlnorm generates negative values for lognor

Re: [Rd] shared mem advice

2004-04-13 Thread Thomas Lumley
; if(size >= > (LONG_MAX / sizeof(VECREC))-sizeof(SEXPREC_ALIGN) > || > (s = > malloc(sizeof(SEXPREC_ALIGN) + size * >sizeof(VECREC)) >) > == NULL) { { > # > > Alex > > ___

Re: [Rd] Incorrect handling of NA's in cor() (PR#6750)

2004-04-09 Thread Thomas Lumley
On Fri, 9 Apr 2004 [EMAIL PROTECTED] wrote: > > Dear Uwe, > > You are wrong. First, I've read the help file before > submitting the report. For two variables, > use="pairwise.complete.obs" and use="complete.obs" should be > equivalent, shouldn't it? Of sourse, the results will be > different when

Re: [Rd] change in behavior of <<-

2004-04-01 Thread Thomas Lumley
On Wed, 31 Mar 2004, Thomas Lumley wrote: > On Tue, 30 Mar 2004, Vincent Carey 525-2265 wrote: > > > > > There has been a change to the behavior of <<-. > > See the error thrown at the bottom of the transcript > > below. I don't believe this is an int

Re: [Rd] change in behavior of <<-

2004-03-31 Thread Thomas Lumley
9.0 > year 2004 > month03 > day 30 > language R > > x <<- list() > > x > list() > > x[["a"]] <- list() > > x > $a > list() > > > x[["a"]] <- 2 > > x > $a > [1] 2 > > > x[["a"]] <<- 2

[Rd] R-bugs is for BUGS (was Help Documentation (PR#6717))

2004-03-29 Thread Thomas Lumley
ifficulties where Brian Ripley and other experts and developers no > > >>longer do. I bet that if I wonder about the answers, I am more than > > >>likely not alone. In fact, I think it would really make sense to > > >>improve the docs by

Re: [Rd] cbind/rbind fail on matrixes containing lists (PR#6702)

2004-03-26 Thread Thomas Lumley
On Fri, 26 Mar 2004, Thomas Lumley wrote: > > Yep, bind.c:do_bind has > > switch(mode) { > case NILSXP: > case LGLSXP: > case INTSXP: > case REALSXP: > case CPLXSXP: > case STRSXP: > break; > default: > error

Re: [Rd] cbind/rbind fail on matrixes containing lists (PR#6702)

2004-03-26 Thread Thomas Lumley
Yep, bind.c:do_bind has switch(mode) { case NILSXP: case LGLSXP: case INTSXP: case REALSXP: case CPLXSXP: case STRSXP: break; default: errorcall(call, "cannot create a matrix from these types"); } Looks like a fairly simple fix to me.

Re: [Rd] R 1.9.0 alpha

2004-03-26 Thread Thomas Lumley
On Wed, 24 Mar 2004, Duncan Murdoch wrote: > > Can you try to put together a small example that illustrates it? One example that happened while trying to answer another R-help question R 1.8.1 library(nlme) example(nlme.nlsList) q("yes") R 1.9.0-beta on startup Error in namespaceExport(ns, expor

Re: [Rd] termplot has problems with a single term (fix included) (PR#6675)

2004-03-18 Thread Thomas Lumley
else terms.names > * if(se) > *terms$se.fit <- as.matrix(terms$se.fit) > > * = added line. > > > The fix above is somewhat ugly. Perhaps (as mentioned above) the > object terms needs renaming (terms.something?), in which case the > first line is redun

Re: [Rd] best methods for strings and structures?

2004-03-16 Thread Thomas Lumley
ent is a vector of integers rather than a single integer. Something like PROTECT(tempstr=allocVector(STRSXP,1)); SET_STRING_ELT(tempstr,0, mkChar( cfg_rec.coeffs_filename)); SET_VECTOR_ELT(ret_val,0, tempstr); UNPROTECT(1); /* tempstr */ (there may be more elegant versions of this).

Re: [Rd] package 'stats' needs import directive for 1.9.0?

2004-02-27 Thread Thomas Lumley
On Fri, 27 Feb 2004, Swinton, Jonathan wrote: > > From: Prof Brian Ripley <[EMAIL PROTECTED]> > > Subject: Re: [Rd] package 'stats' needs import directive for 1.9.0? > > To: "Heywood, Giles" <[EMAIL PROTECTED]> > > Cc: [EMAIL PROTECTED] > ... > > I suggest you don't try: there are already quite a f

Re: [Rd] typo in help(names)? (PR#6594)

2004-02-17 Thread Thomas Lumley
On Tue, 17 Feb 2004 [EMAIL PROTECTED] wrote: > > ## assign just one name > z <- 1:3 > names(z) > # change just the name of the third element. > names(z)[2] <- "b" > z > > Should the second comment read "... second element." > rather than "... third element."? > Yes.

Re: [Rd] Building r-devel on Panther

2004-02-13 Thread Thomas Lumley
On Fri, 13 Feb 2004, Na Li wrote: > > I did: > > ./configure --with-blas='-framework vecLib' --with-lapack --with-aqua > make > sudo make install > sudo make install-aqua > > Everything seems to be OK (some warnings about multiple definitions of > some symbols). However: > I just tried this with

Re: [Rd] Spelling (PR#6570)

2004-02-11 Thread Thomas Lumley
On Wed, 11 Feb 2004 [EMAIL PROTECTED] wrote: > > I came across this in connection with an unrelated issue > > > beta[2] > Error in beta[2] : object is not subsettable > > beta[2] <- 5 > Error in "[<-"(`*tmp*`, 2, value = 5) : object is not subsetable > > One of the messages must be wrong, but I ne

Re: [Rd] PSM function in Design package (PR#6525)

2004-02-02 Thread Thomas Lumley
On Mon, 2 Feb 2004 [EMAIL PROTECTED] wrote: > Full_Name: Oleg Raisky > Version: 1.8.1 > OS: Windows 2000 > Submission from: (NULL) (63.246.203.107) > > > This is a completely fresh R install. I'm trying to use Design package. Every > time I run the first example for psm() I'm getting an error < fu

Re: [Rd] Enhancement to termplot()

2004-01-24 Thread Thomas Lumley
On Sat, 24 Jan 2004, John Maindonald wrote: > I'd like to make the following change to termplot(): > > Add panel=points as an extra parameter. > > (I foreshadowed this when I submitted problem #6327, and offered a fix > that, in default of anything better, I assume will be made or has been > made

Re: [Rd] [g]sub behaviour with NA (PR#6451)

2004-01-22 Thread Thomas Lumley
On Thu, 22 Jan 2004 [EMAIL PROTECTED] wrote: > We could extend sub() / gsub() to coerce its `x' to character, > then this would work, > or we should make it give an error because NA is logical, not a > character. > > The first option would be inline with already allowing logical > NA for `pattern'

Re: [Rd] ChangeLog for R packages {was "Wish list"}

2004-01-20 Thread Thomas Lumley
On Tue, 20 Jan 2004, Martin Maechler wrote: > "Of course" "R CMD check" would have the harder job of also have > to work properly on non-Debian, non-Linux, even non-Unix systems.. > For Windows, there's already the filename capitalization mess. Add a Changelog: entry to DESCRIPTION? -tho

Re: [Rd] Wish list

2004-01-19 Thread Thomas Lumley
anting it exported. -thomas Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED] University of Washington, Seattle __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Wish list

2004-01-18 Thread Thomas Lumley
#x27;t be keeping up with other aspects of change tracking. Even trying to extract a NEWS or Changelog file might not work -- eg for survival the Changelog file is Terry Therneau's change log, not my log for changes to the R port. -thomas Thomas Lumley Assoc. Pr

Re: [Rd] Another wishlist for R

2004-01-16 Thread Thomas Lumley
ng them, and shouldn't. It's probably too late to stop this for functions like glm(), but at least new modelling functions could avoid it. There are notes about this issue at http://developer.r-project.org/nonstandard-eval.pdf -thomas Thomas Lumley Assoc.

Re: [Rd] problem with pipes (PR#5053)

2003-12-26 Thread Thomas Lumley
On Thu, 25 Dec 2003, Duncan Murdoch wrote: > On Thu, 13 Nov 2003 08:29:58 -0800 (PST), you wrote: > > >On Wed, 12 Nov 2003 [EMAIL PROTECTED] wrote: > >> > >> 3. Usually I get the above but sometimes I get no output from readLines at > >> all. > >> > > > >This last problem may be the same as PR#114

Re: [Rd] Maybe some bug on sapply(PR#5628)

2003-12-09 Thread Thomas Lumley
On Tue, 9 Dec 2003 [EMAIL PROTECTED] wrote: > I can confirm this bug on Solaris 2.8 running R-1.8.1. Here's a simplified > version: > > y <- list() > sapply(1, function(i) y[[i]] <- expression(1)) > cbind(1, rep(2,1)) > Furthermore, it doesn't happen with lapply() or with sapply(, simplify=FALSE

Re: [Rd] R OS X panther? (PR#5529)

2003-12-04 Thread Thomas Lumley
On Fri, 5 Dec 2003 [EMAIL PROTECTED] wrote: > I have just used the RAqua.pkg to install R, and it doesn't work! I > have Mac OS X 10.3, and the old version of R works OK, but the .pkg > thing installed, and then when I double-click on the "StartR" > application nothing happens. Nothing at all, n

Re: [Rd] problem with pipes (PR#5053)

2003-11-13 Thread Thomas Lumley
On Wed, 12 Nov 2003 [EMAIL PROTECTED] wrote: > > 3. Usually I get the above but sometimes I get no output from readLines at > all. > This last problem may be the same as PR#1140 on the Mac, where popen() calls sometimes got killed by an interrupt. -thomas

Re: [Rd] RAqua package installation on Panther

2003-11-06 Thread Thomas Lumley
On Thu, 6 Nov 2003, Stefano Iacus wrote: > > Thanks to Thomas L. and other users to stop this and suggest fixes. > Thomas is still claiming that it is also configure that fails on > panther because of the same problem. > > My own experience is that > * on a fresh Panther installation (i.e. removin

[Rd] Mac OS X/panther R INSTALL

2003-11-04 Thread Thomas Lumley
and you don't have teTex or TeXShop installed I would be interested to know -thomas Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED] University of Washington, Seattle __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] glm offset and interaction bugs (PR#4941)

2003-11-03 Thread Thomas Lumley
machine and the > check of out.ok "by hand", see > >http://www.stat.umn.edu/geyer/5931/mle/seed2.Rnw >http://www.stat.umn.edu/geyer/5931/mle/seed2.pdf > > __ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel >

[Rd] fairly OT: profiling

2003-11-02 Thread Thomas Lumley
ference or link)). -thomas Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED] University of Washington, Seattle __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R1.8.0 and virtual PC (PR#4708)

2003-10-21 Thread Thomas Lumley
On Tue, 21 Oct 2003 [EMAIL PROTECTED] wrote: > Dear Sir/Madam > > First, I should tell that I'm using virtual PC "w2k" in a mac osx 10.2. > It would probably be easier (and faster) to use RAqua in OS X, rather than the windows version under virtual PC. -thomas __

Re: [Rd] warning from return() in 1.8 but not in 1.7.0 (PR#4687)

2003-10-20 Thread Thomas Lumley
On Mon, 20 Oct 2003 [EMAIL PROTECTED] wrote: > To whom it may concern, > > I get the following message when I run my function: > > Warning message: > multi-argument returns are deprecated in: return(call.fn, repl, time, from, > to, last.year, occup.m, ant.occ.m, > For each version of R there is a

Re: [Rd] data() misbehaving inside a function

2003-10-17 Thread Thomas Lumley
On Fri, 17 Oct 2003, Kurt Hornik wrote: > > Peter Dalgaard writes: > > > Kurt Hornik <[EMAIL PROTECTED]> writes: > KH> Or get rid of non-standard evaluation and educate users to use quoted > KH> strings where strings should be used. > >> > >> > and infuriate those who know and used the S langu

Re: [Rd] NA %*% 0 == 0 (PR#4582)

2003-10-14 Thread Thomas Lumley
On Tue, 14 Oct 2003 [EMAIL PROTECTED] wrote: > Full_Name: J . R. M. Hosking > Version: 1.8.0 > OS: Windows 2000 > Submission from: (NULL) (129.34.20.23) > > > On R 1.8.0 (and on R 1.5.1), Windows binary: > > > NA %*% 0 > [,1] > [1,]0 > > This is surprising. Is it a bug? Note that > I t

Re: [Rd] Could the Windows installer edit PATH?

2003-10-10 Thread Thomas Lumley
On Fri, 10 Oct 2003, Chris Jackson wrote: > Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > > Why do you need to edit PATH? I never have the rw10xx/bin directory > > in my Desktop PATH. I do set the PATH in a terminal window when > > working with R, but I do that via the shell startup options (.t

Re: [Rd] Are package maintainers responsible for name-mangling class names?

2003-10-02 Thread Thomas Lumley
Note that it is probably not easy to come up with an automated system that can distinguish a package that uses classes from other packages from one that overrides classes from other packages. -thomas Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED]

Re: [Rd] eigin of matrix of NaNs (PR#4366)

2003-09-30 Thread Thomas Lumley
On Wed, 1 Oct 2003 [EMAIL PROTECTED] wrote: > Confirmed for R 1.7.1 on Linux. > The good news is that the bug seems to have been fixed > 'inadvertently' already, as it is not showing in R-1.8.0beta > anymore. > It was fixed in response to another bug report about eigen of NA values. -thom

Re: [Rd] How does "subset" replace arguments? (PR#4193)

2003-09-16 Thread Thomas Lumley
On Tue, 16 Sep 2003 [EMAIL PROTECTED] wrote: > Full_Name: Axel Benz > Version: 1.7.1 > OS: Windows > Submission from: (NULL) (137.251.33.43) > > > Hello, I guess many people will answer me again that this is a S > language feature, but I am only a stupid computer scientist and I simply > do not un

Re: [Rd] (no subject)

2003-08-17 Thread Thomas Lumley
On Sun, 17 Aug 2003, Jan de Leeuw wrote: > RAqua now builds fine, but for some reason tcl/tk support cannot be > compiled in. > I had a problem that looked like this, and it was due to having some old tcl8.0 headers and libraries in /usr/local/ -thomas __

Re: [Rd] R-devel problem

2003-08-17 Thread Thomas Lumley
On Sat, 16 Aug 2003, Jan de Leeuw wrote: > With the current version from rsync (8/16, 19:00) I get > > make[3]: *** No rule to make target `helpsearch.c', needed by > `Makefile'. Stop. > make[2]: *** [R] Error 1 > make[1]: *** [R] Error 1 > make: *** [R] Error 1 Yes. Some idiot forgot that you n

Re: [Rd] RAqua

2003-08-14 Thread Thomas Lumley
ua, because mine still says > > X11 module is not available under this GUI Ah. X11 support went in fairly recently and I don't think is in the last precompiled binary that Stefano put up (and yes, I remember you were having compiling problems with RAqua). You would need to compile a mor

Re: [Rd] rowsum() may return a vector instead of a matrix (PR#3737)

2003-08-14 Thread Thomas Lumley
On Wed, 13 Aug 2003 [EMAIL PROTECTED] wrote: > If all rows are in the same "group", rowsum() returns a vector instead of a > (1xN) matrix, contrary to documentation: > Yes, and it appears to be deliberate since rowsum.default() ends with drop(rval), though I don't remember why it was this way. I

Re: [Rd] RAqua

2003-08-14 Thread Thomas Lumley
e startup code, but they don't seem to have any effect. -thomas Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED] University of Washington, Seattle __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] backtick notation

2003-08-14 Thread Thomas Lumley
ame already allow you to do this. Is there more to it than that? assign and as.name are fairly limited. For example, if you have a list or data frame whose name is syntactically invalid it is quite difficult to access or modify its columns. -thomas Thomas Lumley

Re: [Rd] RAqua

2003-08-14 Thread Thomas Lumley
s. Mine can't. > you should start QuartzX and use x11(display=":0") You don't even need x11(display=":0"), but you do need to start an X server. RAqua doesn't start an X server and I don't think it should. X display windows are still not resizable, which is

Re: [Rd] model.frame() call from inside a function (PR#3671)

2003-08-07 Thread Thomas Lumley
On 7 Aug 2003, Peter Dalgaard BSA wrote: > [[ I did discover yesterday (or maybe I was just reminded...) that we > even have nonstandard nonstandard evaluation rules in some places > (nls() seems to evaluate its model formula in the global environment > even if it is given explicitly within a funct

Re: [Rd] RE: [R] ^ operation much slower in R 1.7.1 than in R 1.7.0???

2003-08-05 Thread Thomas Lumley
On Tue, 5 Aug 2003, Philippe Grosjean wrote: > > OK. But I was wondering if people at R-core team, especially those who > worked on Windows specific aspects, would have in mind some changes they did > between 1.7.0 and 1.7.1 than can cause this. Since these changes are mainly > corrections of bugs,

Re: [Rd] (PR#3658)

2003-08-04 Thread Thomas Lumley
On Tue, 5 Aug 2003 [EMAIL PROTECTED] wrote: > The function 'getAnywhere' crashes if given a non-existent name containing a period: > > > getAnywhere( 'nomethod.noclassforme') > Error in get(x, envir, mode, inherits) : variable "nomethod" was not found > Seems to already be fixed in r-devel./

Re: [Rd] unexpected behaviour in lm() (PR#3657)

2003-08-04 Thread Thomas Lumley
On Mon, 4 Aug 2003 [EMAIL PROTECTED] wrote: > > > lm(c(1:10) ~ c(1:10)) > > Call: > lm(formula = c(1:10) ~ c(1:10)) > > Coefficients: > (Intercept) > 5.5 It's a feature. Unfortunately it's not a well documented feature. A variable on the right-hand side of the formula is removed if it ha

Re: [Rd] round to even digit (PR#3604)

2003-08-03 Thread Thomas Lumley
27;t exactly expressible in binary. -thomas Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED] University of Washington, Seattle __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] abs() and negative output from fractions() (PR#3536)

2003-07-22 Thread Thomas Lumley
) > [1] -2.00 -0.40 1.00 1.33 > >abs(as.numeric(zeros)) > [1] 2.00 0.40 1.000000 1.33 Why is this a bug? -thomas Thomas Lumley Assoc. Professor, Biostatistics [EMAIL PROTECTED] University of Washington, Seattle __

Re: [Rd] calling R from C

2003-07-21 Thread Thomas Lumley
lows you to construct and evaluate R expressions from C. There's a recent thread on r-devel with a bit more information: http://maths.newcastle.edu.au/~rking/R/devel/03b/0073.html -thomas Thomas Lumley Assoc. Professor, B

Re: [Rd] lattice and Sweave

2003-06-19 Thread Thomas Lumley
On 19 Jun 2003, Douglas Bates wrote: > > I have a big sign next to my monitor saying > > When using Sweave you _must_ print a lattice plot. > D'oh. Of course. And the reason the other lattice plots worked is that I did print them, because they weren't called as methods for plot(). -t

  1   2   >