Re: [Rd] Native implementation of rowMedians()

2007-05-14 Thread Martin Maechler
BDR == Prof Brian Ripley [EMAIL PROTECTED] on Mon, 14 May 2007 11:39:18 +0100 (BST) writes: BDR On Mon, 14 May 2007, Henrik Bengtsson wrote: On 5/14/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: Hi Henrik, HenrikB == Henrik Bengtsson [EMAIL PROTECTED]

Re: [Rd] citation question

2007-05-16 Thread Martin Maechler
Ben == Ben Bolker [EMAIL PROTECTED] on Wed, 16 May 2007 15:01:31 -0400 writes: Ben I want to put the correct information into the Ben author field of the DESCRIPTION file for my bbmle Ben package, which is a modified and extended version of Ben the mle code in the stats4

Re: [Rd] relist, an inverse operator to unlist

2007-05-22 Thread Martin Maechler
AndrewC == Andrew Clausen [EMAIL PROTECTED] on Tue, 22 May 2007 07:51:54 -0400 writes: AndrewC Hi Seth, AndrewC On Mon, May 21, 2007 at 05:15:10PM -0700, Seth Falcon wrote: I will also add that the notion of a default argument on a generic function seems a bit odd to me.

Re: [Rd] relist, an inverse operator to unlist

2007-05-23 Thread Martin Maechler
GaGr == Gabor Grothendieck [EMAIL PROTECTED] on Wed, 23 May 2007 08:56:50 -0400 writes: GaGr On 5/23/07, Seth Falcon [EMAIL PROTECTED] wrote: Andrew Clausen [EMAIL PROTECTED] writes: Hi Seth, On Mon, May 21, 2007 at 05:15:10PM -0700, Seth Falcon wrote:

Re: [Rd] [Bioc-devel] promptClass

2007-05-28 Thread Martin Maechler
sparseMatrix in the signature. } so there's at least another bug there. One difference: sparseMatrix is a virtual class, AffyBatch not, but then showMethods(classes = ..) works for both. I'd be glad if you have time to find another patch ;-) :-) Martin Maechler cstrato [EMAIL PROTECTED

Re: [Rd] S4 assignment \alias and \usage

2007-05-30 Thread Martin Maechler
default Using func.default is an S3 concept which in S4 is replaced by defining methods for ANY. In Matrix, we have \alias{dim-,Matrix-method} and that works fine -- though we don't have a \usage{.} there, since this really is in Matrix-class.Rd Martin Maechler PaulG \usage{ PaulG

Re: [Rd] Sort in ecdf

2007-05-30 Thread Martin Maechler
Shiazy == Shiazy Fuzzy [EMAIL PROTECTED] on Wed, 30 May 2007 20:07:24 +0200 writes: Shiazy Hi! Shiazy I've noticed the ecdf() R code (R ver. 2.5.0) contains two call to sort: Shiazy --- [R-code] --- Shiazy ecdf - function(x) Shiazy x - sort(x) Shiazy n - length(x)

Re: [Rd] Test for Equality of Coefficient of Variation

2007-06-14 Thread Martin Maechler
Please repost this on R-help, which is appropriate here. Regards, Martin Maechler GK == Gregory Kotler [EMAIL PROTECTED] on Wed, 13 Jun 2007 11:38:06 -0400 writes: GK Hi ALL, GK Do R have any tools for testing equality of coefficients of variation GK for k normal populations

Re: [Rd] two bessel function bugs for nu0

2007-06-22 Thread Martin Maechler
Thank you both, Hiroyuki and Robin, Robin == Robin Hankin [EMAIL PROTECTED] on Tue, 19 Jun 2007 10:25:27 +0100 writes: Robin I can reproduce both these bugs and confirm that the suggested fix Robin agrees with Mathematica and Maple for a few trial values. Robin I can confirm

Re: [Rd] conflict between lme4 and RMySQL packages (PR#9753)

2007-06-26 Thread Martin Maechler
BDR == Prof Brian Ripley [EMAIL PROTECTED] on Tue, 26 Jun 2007 10:51:03 +0100 (BST) writes: BDR You have three summary() functions here: library(RMySQL) BDR Loading required package: DBI library(lme4) BDR Loading required package: Matrix BDR Loading required

[Rd] Math group generics for S4, and a bug

2007-06-26 Thread Martin Maechler
MM == Martin Maechler [EMAIL PROTECTED] on Sat, 23 Jun 2007 00:36:43 +0200 writes: {on R-help} [.] [.] Duncan Murdoch DM You might have better luck with DM log1p(tasa) MM {very good point, thank you, Duncan!} DM

Re: [Rd] Math group generics for S4, and a bug

2007-06-26 Thread Martin Maechler
. Thanks a lot, Brian! Martin BDR On Tue, 26 Jun 2007, Martin Maechler wrote: MM == Martin Maechler [EMAIL PROTECTED] on Sat, 23 Jun 2007 00:36:43 +0200 writes: {on R-help} [.] [.] Duncan Murdoch DM You

Re: [Rd] Math group generics for S4, and a bug

2007-06-26 Thread Martin Maechler
JMC == John Chambers [EMAIL PROTECTED] on Tue, 26 Jun 2007 14:47:25 -0400 writes: JMC Martin Maechler wrote: MM == Martin Maechler [EMAIL PROTECTED] on Sat, 23 Jun 2007 00:36:43 +0200 writes: {on R-help

Re: [Rd] signature() and setMethod() problems

2007-06-28 Thread Martin Maechler
Robin == Robin Hankin [EMAIL PROTECTED] on Thu, 28 Jun 2007 13:38:32 +0100 writes: Robin I am having difficulty using signature(). I have one Robin virtual class (onion) and two nonvirtual classes Robin (quaternion and octonion). containing onion. Robin I want to define

Re: [Rd] minor flaw in integrate()

2007-07-03 Thread Martin Maechler
DM == Duncan Murdoch [EMAIL PROTECTED] on Mon, 02 Jul 2007 21:56:23 -0400 writes: DM On 28/06/2007 5:05 PM, Peter Ruckdeschel wrote: Hi, I noticed a minor flaw in integrate() from package stats: Taking up arguments lower and upper from integrate(),

Re: [Rd] minor flaw in integrate()

2007-07-03 Thread Martin Maechler
PetRd == Peter Ruckdeschel [EMAIL PROTECTED] on Tue, 03 Jul 2007 17:26:43 +0200 writes: PetRd Thanks Martin and Duncan for your PetRd comments, PetRd Martin Maechler wrote: DM == Duncan Murdoch [EMAIL PROTECTED] on Mon, 02 Jul 2007 21:56:23 -0400 writes: DM

Re: [Rd] Getting param names of primitives

2007-07-11 Thread Martin Maechler
BDR == Prof Brian Ripley [EMAIL PROTECTED] on Wed, 11 Jul 2007 05:48:56 +0100 (BST) writes: formals(args(log)) BDR $x BDR $base BDR exp(1) BDR gives what formals(log) used to. (I knew). I've been asking myself several times now, if we should not make formals() do

Re: [Rd] Field initialization order bug?

2007-07-17 Thread Martin Maechler
with a 4-element list. yes; and consequently, a more readable solution would start saying a - list(field1 = NULL, field2 = NULL) or equivalently (and maybe nicer looking): a - list(field1 = {}, field2 = {}) Martin Maechler, ETH Zurich __ R-devel@r

Re: [Rd] CHAR(STRING_ELT( - OK but CHAR(asChar(STRING_ELT( - not, why?

2007-07-24 Thread Martin Maechler
BDR == Prof Brian Ripley [EMAIL PROTECTED] on Mon, 23 Jul 2007 13:22:16 +0100 (BST) writes: BDR I think you are asking why calling asChar on a CHARSXP gives NA_STRING. BDR In particular, the calls you mention *are* perfectly OK and work as BDR intended. BDR As barely

Re: [Rd] dict package: dictionary data structure for R

2007-07-24 Thread Martin Maechler
should really use C code to do this; but then R has become so fast ... Martin Maechler, ETH Zurich HenrikB Just my $.02 HenrikB /Henrik __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] package dependencies

2007-08-16 Thread Martin Maechler
SF == Seth Falcon [EMAIL PROTECTED] on Wed, 15 Aug 2007 16:59:01 -0700 writes: SF Zhenhuan Cui [EMAIL PROTECTED] writes: I created an add-on R package. In this package, there is a line require(pckgname), because I need to call some functions in pckgname. My package is

[Rd] paste() with NAs .. change worth persuing?

2007-08-22 Thread Martin Maechler
Consider this example code c1 - letters[1:7]; c2 - LETTERS[1:7] c1[2] - c2[3:4] - NA rbind(c1,c2) ## [,1] [,2] [,3] [,4] [,5] [,6] [,7] ## c1 a NA c d e f g ## c2 A B NA NA E F G paste(c1,c2) ## - [1] a A NA B c NA d NA e E f F g G where a more logical

Re: [Rd] paste() with NAs .. change worth persuing?

2007-08-24 Thread Martin Maechler
PS == Petr Savicky [EMAIL PROTECTED] on Thu, 23 Aug 2007 15:49:32 +0200 writes: PS On Wed, Aug 22, 2007 at 08:53:39PM +0300, Jari Oksanen wrote: On 22 Aug 2007, at 20:16, Duncan Murdoch wrote: A fairly common use of paste is to put together reports for human

Re: [Rd] R CMD check recursive copy of tests/

2007-08-30 Thread Martin Maechler
) -- -- -- -- -- The development version is available via subversion (svn) or also simple web tools from https://svn.r-project.org/Rmetrics/trunk/fCalendar/ Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] sweep sanity checking?

2007-09-03 Thread Martin Maechler
n %% n is zero only for n != 0 and the case n==0 is valid]. If you are interested in using the new sweep() version, and because we are entering alpha testing of R 2.6.0, I'd recommend you to start using R-devel. Martin Maechler TH For the record I should say that Petr was right to point

Re: [Rd] attachments for R-devel e-mails

2007-10-11 Thread Martin Maechler
jpg and gif image types on purpose, since they are the ones spammers have been using for a while now. Regards, Martin Maechler, ETH Zurich, R-{help|devel|...} list and mailman site maintainer. __ R-devel@r-project.org mailing list https://stat.ethz.ch

Re: [Rd] pt inaccurate when x is close to 0 (PR#9945)

2007-10-12 Thread Martin Maechler
DM == Duncan Murdoch [EMAIL PROTECTED] on Thu, 11 Oct 2007 11:10:49 -0400 writes: DM Here's a contribution from Ian Smith that got bounced DM from the list. [well, given the obvious Spam that AOL appended at the end... ] DM Original Message DM Subject:

Re: [Rd] website: Current version of R announced on the home page (PR#10339)

2007-10-13 Thread Martin Maechler
LG == Laurent Gautier [EMAIL PROTECTED] on Sat, 13 Oct 2007 14:50:05 +0200 (CEST) writes: LG Full_Name: Laurent Gautier Version: NA OS: NA Submission LG from: (NULL) (89.84.245.71) Thank you for the heads up. [ An e-mail to R-devel (or R-core) would have been slightly more

Re: [Rd] help

2007-10-25 Thread Martin Maechler
user of R, there's only one mailing list for you : R-help; definitely not R-devel. Can you please re-post there? Regards Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Pb building sets of S4 / RefClass objects with package sets

2011-10-08 Thread Martin Maechler
There is no visible reason why you should ask this on R-devel. Please do not misuse R-deve, but rather use R-help. JP == Johnny Paulo johnny.jp...@gmail.com on Fri, 7 Oct 2011 18:01:56 +0100 writes: Hi, does anyone know if it is possible to construct sets of S4 objects? It

Re: [Rd] median and data frames

2011-10-08 Thread Martin Maechler
Martin Maechler maech...@stat.math.ethz.ch on Fri, 29 Apr 2011 16:25:09 +0200 writes: Paul Johnson pauljoh...@gmail.com on Thu, 28 Apr 2011 00:20:27 -0500 writes: On Wed, Apr 27, 2011 at 12:44 PM, Patrick Burns pbu...@pburns.seanet.com wrote: Here are some data frames

Re: [Rd] R CMD build - will reset the timestamps of all files in a package

2011-10-26 Thread Martin Maechler
Valentin Todorov valentin.todo...@chello.at on Tue, 25 Oct 2011 14:34:21 -0700 writes: After half a year of silence on this issue I would dare ask again: is this intended, why and how can I avoid it? Best regards, Valentin ... I wonder why (R version 2.13.0 and

Re: [Rd] strsplit convert data

2011-10-26 Thread Martin Maechler
is *not* for such questions!} Martin Maechler (as 'mailing lists @r-project.org' site administrator). Cheers Joris __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread Martin Maechler
-- that one has about one posting *per month* and is really only for important announcements (and basically reserved for R-core to post). See a list of *all* R-announce postings of 2011 : https://stat.ethz.ch/pipermail/r-announce/2011/date.html with the 2.14.0 announcement at the end. Martin

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread Martin Maechler
from one email address to another. I infer from your email that r-announce emails are no longer sent to r-devel subscribers (which is consistent with the text on  https://stat.ethz.ch/mailman/listinfo/r-announce ). Kasper On Mon, Oct 31, 2011 at 11:42 AM, Martin Maechler maech

Re: [Rd] inaccuracy in man page for duplicated() + anyDuplicated() not working with MARGIN=0

2011-11-17 Thread Martin Maechler
Hi, In man page for duplicated: Value: ‘duplicated()’: For a vector input, a logical vector of the same length as ‘x’. For a data frame, a logical vector with one element for each row. For a matrix or array, a logical array with the same dimensions and

Re: [Rd] Small inconsistency with boxplot

2011-11-18 Thread Martin Maechler
this, as a change also may have adverse consequences. Martin Maechler, ETH Zurich (and R Core) *** Downloads/R-2.14.0/src/library/graphics/R/boxplot.R Mon Oct 3 00:02:21 2011 --- boxplot.R Thu Nov 17 23:02:45 2011 *** *** 203,209 } if(is.null(pars

Re: [Rd] bug in sum() on integer vector

2011-12-15 Thread Martin Maechler
peter dalgaard pda...@gmail.com on Thu, 15 Dec 2011 11:40:23 +0100 writes: On Dec 15, 2011, at 02:51 , Hervé Pagès wrote: Hi Peter, On 11-12-14 08:19 AM, peter dalgaard wrote: On Dec 14, 2011, at 16:19 , John C Nash wrote: Following this

Re: [Rd] R CMD check fails to warn about undocumented classes and methods

2011-12-16 Thread Martin Maechler
pkg.tar.gz files. Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Undocumented functions

2011-12-16 Thread Martin Maechler
David Scott d.sc...@auckland.ac.nz on Fri, 16 Dec 2011 22:51:11 +1300 writes: One easy way is to list the undocumented files in pkg-internal.Rd. From the Writing R Extensions manual: Note that all user-level objects in a package should be documented; if a package pkg

Re: [Rd] Saving nothing with save()

2011-12-19 Thread Martin Maechler
Barry Rowlingson b.rowling...@lancaster.ac.uk on Sun, 18 Dec 2011 01:32:52 + writes: Scenario: Here I am working away in R. I've got results that prove global warming is anthropogenic and also the solution for producing limitless carbon-neutral energy from nuclear

Re: [Rd] Saving nothing with save()

2011-12-20 Thread Martin Maechler
Simon Urbanek simon.urba...@r-project.org on Mon, 19 Dec 2011 10:38:34 -0500 writes: Martin, On Dec 19, 2011, at 6:39 AM, Martin Maechler wrote: Barry Rowlingson b.rowling...@lancaster.ac.uk on Sun, 18 Dec 2011 01:32:52 + writes: Scenario: Here I am

Re: [Rd] CRAN link broken

2011-12-31 Thread Martin Maechler
Prof Brian Ripley rip...@stats.ox.ac.uk on Sat, 31 Dec 2011 06:36:04 + writes: This is not the CRAN webmaster's address[*], and the problem has been reported several times already to the proper places. No one reading this list apart from the handful with CRAN

Re: [Rd] CRAN link broken -- Swiss backup

2011-12-31 Thread Martin Maechler
Martin Maechler maech...@stat.math.ethz.ch on Sat, 31 Dec 2011 12:15:10 +0100 writes: Prof Brian Ripley rip...@stats.ox.ac.uk on Sat, 31 Dec 2011 06:36:04 + writes: This is not the CRAN webmaster's address[*], and the problem has been reported several times already

Re: [Rd] problem with R installation package

2012-01-10 Thread Martin Maechler
your package from source using: install.packages(G2Sd, type=source) ps: This is a question for the r-help mailing list, not r-devel. Yes, indeed! Martin Maechler __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[Rd] A: ImportFrom(B, ...) -- B: ImportFrom(A, ...)

2012-01-14 Thread Martin Maechler
If I have a package A whose NAMESPACE has ImportFrom(B, B-syms)) and a package B whose NAMESPACE has ImportFrom(A, A-syms) and we can assume that A-syms and B-syms are disjoint. The clue would be that I only import relatively little from one namespace to the other. I currently get an error

[Rd] RFC: Proposal to make NROW() and NCOL() slightly more general

2012-02-04 Thread Martin Maechler
check-all' checks... but I'd really like to let this pass by as a general RFC.. (in spite of the fact that I'll offline for almost all the rest of the weekend). Martin Maechler __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [Rd] RFC: Proposal to make NROW() and NCOL() slightly more general

2012-02-06 Thread Martin Maechler
On Sat, Feb 4, 2012 at 10:38 AM, Martin Maechler maech...@stat.math.ethz.ch wrote: The help has Description:   'nrow' and 'ncol' return the number of rows or columns present in 'x'.   'NCOL' and 'NROW' do the same treating a vector as 1-column matrix. and   x: a vector

Re: [Rd] RFC: Proposal to make NROW() and NCOL() slightly more general

2012-02-07 Thread Martin Maechler
Martin Maechler maech...@stat.math.ethz.ch on Mon, 6 Feb 2012 15:35:36 +0100 writes: On Sat, Feb 4, 2012 at 10:38 AM, Martin Maechler maech...@stat.math.ethz.ch wrote: The help has Description:   'nrow' and 'ncol' return the number of rows or columns

Re: [Rd] capture.output() is trying to allocate 17179869182.6 Gb on my not so big data.frame

2012-02-08 Thread Martin Maechler
. I'm testing that and will commit.. if things seem fine. Martin Maechler Martin Morgan I get something similar with R 2.14.1. Cheers, H. sessionInfo() R Under development (unstable) (2012-01-16 r58124) Platform: x86_64-unknown-linux-gnu (64

Re: [Rd] requesting a new SIG mailing list

2012-02-16 Thread Martin Maechler
thinking a bit about the meaning of the words, most will have to agree with you. {but please let's not start a thread on that now..} Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] function remains loaded in the search space after detaching the package

2012-02-24 Thread Martin Maechler
a package with its namespace. ?detach ?library etc should give a good start. Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Identical copy of base function

2012-02-27 Thread Martin Maechler
Matthew Dowle mdo...@mdowle.plus.com on Mon, 27 Feb 2012 09:59:43 + writes: Hello, Regarding this in R-devel/NEWS/New features : o 'library(pkg)' no longer warns about a conflict with a function from 'package:base' if the function is an identical copy of the

Re: [Rd] Identical copy of base function

2012-02-27 Thread Martin Maechler
strong reservations about this behavior when applied to the general universe of R and CRAN. Jeff On Mon, Feb 27, 2012 at 6:03 AM, Martin Maechler maech...@stat.math.ethz.ch wrote: Matthew Dowle mdo...@mdowle.plus.com     on Mon, 27 Feb 2012 09:59:43 + writes

Re: [Rd] portable parallel seeds project: request for critiques

2012-03-02 Thread Martin Maechler
Karl Forner karl.for...@gmail.com on Fri, 2 Mar 2012 10:36:14 +0100 writes: Some of the random number generators allow as a seed a vector, not only a single number. This can simplify generating the seeds. There can be one seed for each of the 1000 runs and then, the

Re: [Rd] Unexpected behaviour for RowSideColors in function heatmap

2012-03-12 Thread Martin Maechler
Thanks Kevin, I experienced the same problems with heatmap.2, and therefore resorted to heatmap. For heatmap, the code change I suggested below fixes the problem with side color ordering as far as I can tell, and lets one create a symmetric heatmap with the origin at the top left (which I

Re: [Rd] --as-cran and need to ignore.svn directories

2012-03-12 Thread Martin Maechler
Jari Oksanen jari.oksa...@oulu.fi on Mon, 12 Mar 2012 16:59:45 + writes: On 12/03/2012, at 18:03 PM, Paul Johnson wrote: Good morning: I submitted a package update to CRAN and got a bounce because I had not run R CMD check with --as-cran. I'd not heard of

Re: [Rd] Typo in ?Logistic

2012-03-27 Thread Martin Maechler
R Michael Weylandt michael.weyla...@gmail.com on Mon, 26 Mar 2012 14:29:31 -0400 writes: In the source section of ?rlogis, we see: Source: ‘[dpr]logis’ are calculated directly from the definitions. ‘rlogis’ uses inversion. Should that read [dpq]logis instead?

Re: [Rd] CRAN policies

2012-04-02 Thread Martin Maechler
William Dunlap wdun...@tibco.com on Fri, 30 Mar 2012 16:07:52 + writes: It looks like you define a few functions that use substitute() or sys.call() or similar functions to look at the unevaluated argument list. E.g., cq - function( ...) { # Saves putting in

Re: [Rd] [patch] giving library() a 'version' argument

2012-04-13 Thread Martin Maechler
accordingly. -- Martin Maechler, ETH Zurich (and R core). __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Proposal: model.data

2012-05-04 Thread Martin Maechler
PJ == Paul Johnson pauljoh...@gmail.com on Thu, 3 May 2012 12:09:08 -0500 writes: PJ Greetings: On Thu, May 3, 2012 at 11:36 AM, Brian PJ G. Peterson br...@braverock.com wrote: On Thu, 2012-05-03 at 10:51 -0500, Paul Johnson wrote: If somebody in R Core would like this and

Re: [Rd] creating a '[' method for an S4 class

2012-07-07 Thread Martin Maechler
Benilton Carvalho beniltoncarva...@gmail.com on Sat, 7 Jul 2012 03:49:34 +0100 writes: Hi, I'm working on an S4 class that is expected to behave like an array. I have some difficulties when defining '[' and I wonder if someone could point me to the right direction:

Re: [Rd] installing spam package is failing (spam_0.29-1)

2012-07-19 Thread Martin Maechler
Dirk Eddelbuettel e...@debian.org on Wed, 18 Jul 2012 20:16:25 -0500 writes: For Pete's sake, could you please stop spamming the r-devel list? Indeed! R-devel is reserved for people who do their homework! I've added moderation for Mr. Clone. Martin Maechler, ETH Zurich We

[Rd] Quiz: How to get a named column from a data frame

2012-08-18 Thread Martin Maechler
Today, I was looking for an elegant (and efficient) way to get a named (atomic) vector by selecting one column of a data frame. Of course, the vector names must be the rownames of the data frame. Ok, here is the quiz, I know one quite cute/slick answer, but was wondering if there are obvious

Re: [Rd] Quiz: How to get a named column from a data frame

2012-08-18 Thread Martin Maechler
On Sat, Aug 18, 2012 at 5:14 PM, Christian Brechbühler wrote: On Sat, Aug 18, 2012 at 11:03 AM, Martin Maechler maech...@stat.math.ethz.ch wrote: Today, I was looking for an elegant (and efficient) way to get a named (atomic) vector by selecting one column of a data frame. Of course

Re: [Rd] Quiz: How to get a named column from a data frame

2012-08-18 Thread Martin Maechler
there be something more natural to achieve that? (There is not, currently, AFAIK). Martin Best, -- Joshua Ulrich | about.me/joshuaulrich FOSS Trading | www.fosstrading.com On Sat, Aug 18, 2012 at 10:03 AM, Martin Maechler maech...@stat.math.ethz.ch wrote: Today, I

Re: [Rd] if(--as-cran)?

2012-09-03 Thread Martin Maechler
if in toplevel, and of course does *not* autoprint inside if(.) { .. }. Martin Maechler, ETH Zurich Dirk | /Henrik -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https

Re: [Rd] if(--as-cran)?

2012-09-04 Thread Martin Maechler
Spencer Graves spencer.gra...@prodsyse.com on Mon, 3 Sep 2012 18:39:47 -0700 writes: Hi, Duncan: Duh... Thanks. I should have been able to figure that out for myself. Your help produced a solution much quicker. Thank again. Spencer On 9/3/2012 4:52 PM,

Re: [Rd] if(--as-cran)?

2012-09-05 Thread Martin Maechler
Kasper Daniel Hansen kasperdanielhan...@gmail.com on Tue, 4 Sep 2012 17:41:38 -0400 writes: On Tue, Sep 4, 2012 at 5:32 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 04/09/2012 5:21 PM, John Fox wrote: Dear all, I'd like to second this fairly simple

Re: [Rd] methods cbind2 bind_activation disrupts cbind everywhere

2012-09-14 Thread Martin Maechler
Martin Morgan mtmor...@fhcrc.org on Wed, 12 Sep 2012 15:23:02 -0700 writes: The methods package ?cbind2 includes the instruction to use via methods:::bind_activation(TRUE). well, instruction only if one wants to magically enable its use for cbind(), rbind() use via

Re: [Rd] Segmentation fault when options(max.print = .Machine$integer.max)

2012-09-25 Thread Martin Maechler
Seemed like a good idea at the time, I'm curious. Why is it (setting max.print much too large) a good idea? but options(max.print = .Machine$integer.max) 1:10 [1] Program received signal SIGSEGV, Segmentation fault. because of an integer overflow at

Re: [Rd] Segmentation fault when options(max.print = .Machine$integer.max)

2012-09-25 Thread Martin Maechler
Martin Morgan mtmor...@fhcrc.org on Tue, 25 Sep 2012 05:34:12 -0700 writes: On 09/25/2012 05:26 AM, Martin Maechler wrote: Seemed like a good idea at the time, I'm curious. Why is it (setting max.print much too large) a good idea? I usually set

Re: [Rd] simplify2array edge case

2012-10-19 Thread Martin Maechler
of sapply() at the time and hence needed to go into simplify2array() in order to keep sapply() completely back compatible. Bill, have you looked into optional different behavior? Martin Maechler, ETH Zurich Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com

Re: [Rd] suppress *specific* warnings?

2012-10-25 Thread Martin Maechler
. Indeed, a *really* dangerous practice. Martin Maechler, ETH Zurich Martin Morgan mtmor...@fhcrc.org on Tue, 23 Oct 2012 05:28:48 -0700 writes: On 10/22/2012 09:57 AM, luke-tier...@uiowa.edu wrote: On Sun, 21 Oct 2012, Martin Morgan wrote: On 10/21/2012 12:28 PM, Ben

Re: [Rd] suppress *specific* warnings?

2012-10-26 Thread Martin Maechler
Duncan Murdoch murdoch.dun...@gmail.com on Thu, 25 Oct 2012 06:51:25 -0400 writes: On 12-10-25 5:28 AM, Martin Maechler wrote: Sorry guys, for coming late, but *please* don't go there. I've been there years ago, and found later why the approach is flawed

Re: [Rd] Help page on '$': 'warnPartialMatchAttr' should be 'warnPartialMatchDollar'

2012-11-19 Thread Martin Maechler
Thank you, Suharto, you are right, there (on ?Extract ) has been a typo. I've fixed it and also added an example at the very end of that help page. Martin Maechler, ETH Zurich Suharto Anggono suharto_angg...@yahoo.com on Thu, 15 Nov 2012 23:48:12 -0800 writes: http

Re: [Rd] bug with mapply() on an S4 object

2012-11-28 Thread Martin Maechler
Hervé Pagès hpa...@fhcrc.org on Tue, 27 Nov 2012 17:03:05 -0800 writes: Some formatting issues when copy/pasting the patch in the body of the email so I've attached the diff file. Thank you, Hervé. I have committed (a slightly simplified version of) your patch to R-devel (to

Re: [Rd] R CMD check: better diagnosis for non-ASCII characters

2012-11-28 Thread Martin Maechler
Michael Friendly frien...@yorku.ca on Tue, 27 Nov 2012 17:17:16 -0500 writes: [Env: R 2.15.1, Win Xp] Suggestion: Could the R script that checks for non-ASCII characters in R CMD check not give either: (a) a pointer to tools:::showNonASCIIfile, as in, try

Re: [Rd] Non-recursive way to remove empty directory on Windows?

2012-11-30 Thread Martin Maechler
Martin Maechler maech...@stat.math.ethz.ch on Fri, 30 Nov 2012 11:47:07 +0100 writes: William Dunlap wdun...@tibco.com on Thu, 29 Nov 2012 02:36:54 + writes: (even worse, path may contain '..' or likewise from a list.files(all.names=TRUE) call) Would anyone's code

Re: [Rd] qr.qy and qr.qty give an error message when y is integer and LAPACK=TRUE

2012-12-03 Thread Martin Maechler
Berend Hasselman b...@xs4all.nl on Mon, 3 Dec 2012 15:25:21 +0100 writes: With this example set.seed(123) A - matrix(runif(40), nrow = 8) y - 1:nrow(A) A.laqr - qr(A, LAPACK=TRUE) both qr.qy(A.laqr,y) and qr.qty(A.laqr,y) give the respective error messages

Re: [Rd] Compilation failure on Solaris: any advice?

2012-12-06 Thread Martin Maechler
elijah wright e...@stderr.org on Wed, 5 Dec 2012 14:23:51 -0600 writes: Is that a build with good old Studio or a build with a recent GCC? I don't have any direct comments that would be helpful to you - but let me know if you need a place to do some test builds and try to

Re: [Rd] small issue with over-zealous clean.

2012-12-10 Thread Martin Maechler
--- On Sun, 9/12/12, Dirk Eddelbuettel e...@debian.org wrote: On 9 December 2012 at 18:17, Hin-Tak Leung wrote: | Noticed a problem for a while - tests/testit.Rd, tests/ver20.Rd are removed on make clean unintentionally. | | This seems to come from a change in tests/Makefile.in, which adds

Re: [Rd] small issue with over-zealous clean.

2012-12-10 Thread Martin Maechler
Hin-Tak Leung ht...@users.sourceforge.net on Mon, 10 Dec 2012 09:23:14 + writes: --- On Mon, 10/12/12, Martin Maechler maech...@stat.math.ethz.ch wrote: [.] That said ..a small bug was introduced back in May  . Yes, you are right. BTW

Re: [Rd] How to locate a file quickly

2012-12-10 Thread Martin Maechler
Wincent ronggui.hu...@gmail.com on Mon, 10 Dec 2012 15:15:34 +0800 writes: Dear all, During the development of R packages, more and more functions are written and some of them are placed in a file. After a while, I want to revised a function, but forget which file the

Re: [Rd] library(tcltk) v. SIGPIPE BUG (?!?)

2012-12-12 Thread Martin Maechler
CM == Cook, Malcolm m...@stowers.org on Tue, 11 Dec 2012 16:50:58 -0600 writes: CM Excellent, thanks for the workaround, that gets _me_ by, for now. CM ~Malcolm -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Tuesday,

Re: [Rd] R-2.15.2 changes in computation speed. Numerical precision?

2012-12-14 Thread Martin Maechler
PJ == Paul Johnson pauljoh...@gmail.com on Fri, 14 Dec 2012 01:01:19 -0600 writes: PJ On Thu, Dec 13, 2012 at 9:01 PM, Yi (Alice) Wang yi.w...@unsw.edu.au wrote: I have also encountered a similar problem. My mvabund package runs much faster on linux/OSX than on windows with

Re: [Rd] Suggestion: 'method' slot for format.ftable()

2012-12-20 Thread Martin Maechler
Marius Hofert marius.hof...@math.ethz.ch on Mon, 17 Dec 2012 11:39:03 +0100 writes: Dear R-developers, I would like to suggest a 'method' slot for format.ftable() (see an adjusted 'format.ftable()' below, taken from the source of R-2.15.2). At the moment,

Re: [Rd] improved methods error

2012-12-20 Thread Martin Maechler
61376 ] Martin Maechler __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Why can't I unclass an array?

2012-12-21 Thread Martin Maechler
Terry Therneau thern...@mayo.edu on Fri, 21 Dec 2012 08:05:21 -0600 writes: In a real example I was trying to remove the class from the result of table, just because it was to be used as a building block for other things and a simple integer vector seemed likely to be

Re: [Rd] Missing /share/dictionaries/en_stats.rds

2013-01-07 Thread Martin Maechler
Henrik Bengtsson h...@biostat.ucsf.edu on Sun, 6 Jan 2013 17:07:12 -0800 writes: Hi. I'm on Windows 7 64-bit with latest R devel with and Rtools (2.16.0.1926). When I try to enable spell checking for 'R CMD check' by setting environment variable

Re: [Rd] Default accessor in S4 classes

2013-01-10 Thread Martin Maechler
Chris Jewell chris.jew...@warwick.ac.uk on Wed, 9 Jan 2013 13:28:49 +1300 writes: CJ == Chris Jewell chris.jew...@warwick.ac.uk on Wed, 9 Jan 2013 13:28:49 +1300 writes: CJ Okay, thanks for the input, All. I'd settled on the explicit coercion as.data.frame as well as the

Re: [Rd] Regarding the recent changes to @-

2013-01-14 Thread Martin Maechler
François Michonneau francois.michonn...@gmail.com on Sun, 13 Jan 2013 18:34:36 -0500 writes: Hello all, In one of the packages (phylobase) I'm contributing to, we define a class as follows: setClass(phylo4, representation(edge = matrix,

Re: [Rd] R-forge, package dependencies

2013-01-16 Thread Martin Maechler
Nick Sabbe nick.sa...@ugent.be on Tue, 15 Jan 2013 21:34:52 +0100 writes: I have exactly the same issue with a pair of my packages on R-Forge. I've already notified Stefan, but I mentioned it wasn't urgent for me :) It must have something to do with the R check using a

Re: [Rd] Declaring/importing non-exported functions [car] in another package

2013-01-17 Thread Martin Maechler
Michael Friendly frien...@yorku.ca on Wed, 16 Jan 2013 12:52:15 -0500 writes: On 1/16/2013 12:26 PM, John Fox wrote: Dear Duncan and Michael, My initial reaction is that I'd rather not export these functions from the car package since the package already has

Re: [Rd] Minor issue in code of 'diffinv.vector' in R 2.15.2

2013-01-28 Thread Martin Maechler
, *and* ... ;-) ... that it is a minor issue - changed for R-patched and R-devel. Martin Maechler, ETH Zurich Also, to make 'differences' consistently integer, diffinv.vector(diffinv.vector(x, lag, differences-1, diff(xi, lag=lag, differences=1)), lag, 1, xi[1L:lag]) in the end part

Re: [Rd] best practice for packages using mclapply to avoid tcltk

2013-02-06 Thread Martin Maechler
PJ == Paul Johnson pauljoh...@gmail.com on Tue, 5 Feb 2013 22:25:01 -0600 writes: On Sun, Feb 3, 2013 at 1:34 PM, Simon Urbanek simon.urba...@r-project.org wrote: As Peter pointed out earlier, this is better addressed by disabling the Tcl/Tk event loop in forked

Re: [Rd] removing union class

2013-03-15 Thread Martin Maechler
, Renaud Thank you for the report... although it would have been great if it had come earlier, as we are approaching feature freeze for 3.0.0 very rapidly. Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [Rd] removing union class

2013-03-15 Thread Martin Maechler
Martin Maechler maech...@stat.math.ethz.ch on Fri, 15 Mar 2013 11:39:18 +0100 writes: Renaud Gaujoux ren...@mancala.cbio.uct.ac.za on Wed, 13 Mar 2013 13:10:44 +0200 writes: Hi, I get the following error when trying to remove a union class: setClassUnion('a', c

Re: [Rd] S4 generic not exported correctly / incorrect dispatch?

2013-03-15 Thread Martin Maechler
Martin Morgan mtmor...@fhcrc.org on Wed, 13 Mar 2013 12:43:59 -0700 writes: In this post https://stat.ethz.ch/pipermail/bioc-devel/2013-March/004152.html a package author reports that S4 dispatch fails. I can reproduce this with a PkgA (attached; 'intervals' is a

Re: [Rd] the case of building R snapshot without svn nor network connection.

2013-03-19 Thread Martin Maechler
Simon Urbanek simon.urba...@r-project.org on Sat, 16 Mar 2013 10:39:42 -0400 writes: On Mar 16, 2013, at 10:13 AM, Hin-Tak Leung wrote: Network access is *not* a given, nor is the privilege of installing arbitrary uncertified and non-essential tools - whatever the

<    1   2   3   4   5   6   7   8   9   10   >