Re: [Rd] Tab formatting in dummy.coef.R

2014-01-03 Thread Martin Maechler
our not quite correct interpretation. The R internal manual you mention below talks about TABs in specific places in *.Rd files only. *.R (and *.c even more) use TABs in many places, and all of R core have their Emacs / vi / ... settings accordingly. Happy New Year, indeed, to all contributors

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Martin Maechler
> Kirill Müller > on Fri, 3 Jan 2014 02:04:06 +0100 writes: > On 01/03/2014 01:59 AM, Duncan Murdoch wrote: >> But results=tex is not the default. Having defaults for >> one option depend on the setting for another is >> confusing, so I think the current setting is ap

Re: [Rd] cat with backspace and newline characters

2013-11-05 Thread Martin Maechler
>>>>> "PhGr" == Philippe Grosjean >>>>> on Tue, 5 Nov 2013 17:02:19 +0100 writes: PhGr> On 05 Nov 2013, at 14:22, Martin Maechler PhGr> wrote: >>>>>>> Kenn Konstabel on Tue, 5 Nov >>>>>&

Re: [Rd] [PATCH] minor suggestions for R-ints manual

2013-11-05 Thread Martin Maechler
ommit that introduced the "6 years" string and on the > date of grid 0.1. > Scott I've used "about 2001" and otherwise basically applied your patch (after checking it). Thank you very much for your contribution! Martin Maechler > -- > Scot

Re: [Rd] cat with backspace and newline characters

2013-11-05 Thread Martin Maechler
>>>>> Brian G Peterson >>>>> on Tue, 5 Nov 2013 07:30:14 -0600 writes: > On 11/05/2013 07:22 AM, Martin Maechler wrote: >> which --- as you allude to below --- shows that RStudio >> has changed R in so far that it adds a

Re: [Rd] cat with backspace and newline characters

2013-11-05 Thread Martin Maechler
you allude to below --- shows that RStudio has changed R in so far that it adds a '\n' even when R, i.e. cat() does not. I can understand that the RStudio programmers want to protect their users (*) from getting funny looking output, but I still don't like the fact that R in

Re: [Rd] Imports, importFrom slow (for Matrix)

2013-10-30 Thread Martin Maechler
software, and proposals for changes that speedup the loadNamespace("Matrix") without having to change the R code inside Matrix much are highly appreciated. Martin Maechler, ETH Zurich > On Tue, Oct 29, 2013 at 10:25 AM, Gábor Csárdi > wrote: >> Unfortunately th

Re: [Rd] Imports, importFrom slow (for Matrix)

2013-10-30 Thread Martin Maechler
> Gábor Csárdi > on Tue, 29 Oct 2013 10:31:14 -0400 writes: > Oh, you mean to put Matrix:: in the functions that need > Matrix, right, of course. Then yes, this could be a > solution. I have some issue with some new class > definitions, but I can probably work them out

Re: [Rd] R CMD check problem with R 3.0.2

2013-10-28 Thread Martin Maechler
> Duncan Murdoch > on Sun, 27 Oct 2013 08:56:31 -0400 writes: > On 13-10-26 9:49 PM, Simon Urbanek wrote: >> On Oct 25, 2013, at 12:12 PM, Yihui Xie wrote: >> >>> This has been asked s many times that I think it may >>> be a good idea for R CMD check to just s

Re: [Rd] Packages not found

2013-08-29 Thread Martin Maechler
> Uwe Ligges > on Thu, 29 Aug 2013 14:47:21 +0200 writes: > Thanks, we know, this is work in progress. Uwe Ligges and mirrors still work, e.g., http://cran.CH.r-project.org/web/packages/ --- Martin > On 29.08.2013 14:08, cstrato wrote: >> Dear all, >>

Re: [Rd] robustbase compilation problem: probably boneheaded? maybe 32-bit?

2013-07-22 Thread Martin Maechler
> Simon Urbanek > on Thu, 11 Jul 2013 23:10:21 -0400 writes: > On Jul 11, 2013, at 10:57 PM, Ben Bolker wrote: >> >> With a recent SVN build (R Under development (unstable) (2013-07-10 >> r63264) -- "Unsuffered Consequences"), I'm having trouble installing the >>

Re: [Rd] Posting Guide: changed link and other comment

2013-07-22 Thread Martin Maechler
> Scott Kostyshak > on Fri, 19 Jul 2013 03:34:20 -0400 writes: > I have two comments regarding the Posting Guide: > (1) The link in the following sentence did not work for me: > Take care when you quote other people's comments to respect their > rights, e.g., as summa

Re: [Rd] RFC: a "safe" uniroot() function for future R

2013-07-03 Thread Martin Maechler
>>>>> Berend Hasselman >>>>> on Mon, 3 Jun 2013 09:01:25 +0200 writes: > On 31-05-2013, at 10:34, Martin Maechler > wrote: > ….. >> From the current feedbacks, I'd come to propose / further >> discuss the follow

Re: [Rd] pretty eerie feeling: Google "down", Twitter "down", R sites up

2013-06-27 Thread Martin Maechler
>>>>> Marc Schwartz >>>>> on Thu, 27 Jun 2013 11:26:23 -0500 writes: > On Jun 27, 2013, at 10:32 AM, Martin Maechler wrote: >> Maybe this is just from inside ETH Zurich, >> but I haven't seen this before in many years: &g

[Rd] pretty eerie feeling: Google "down", Twitter "down", R sites up

2013-06-27 Thread Martin Maechler
Maybe this is just from inside ETH Zurich, but I haven't seen this before in many years: for > 15 minutes now, for me and at least someone else here, - Google (incl. Gmail, calendar..) is entirely unreachable - Twitter is "connecting" and is not reached (in the browser), - three major Swiss news

Re: [Rd] str and s3 classes

2013-06-21 Thread Martin Maechler
In such a case (and not only here), using an S4 class instead of an S3 is much more natural IMO. But of course, we can discuss the issue here; that's exactly what I think R-devel is for. With regards (also to the Rstudio team), Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R CMD INSTALL and file permission settings

2013-06-15 Thread Martin Maechler
> Dirk Eddelbuettel > on Sat, 15 Jun 2013 10:45:04 -0500 writes: > On 15 June 2013 at 07:00, Dirk Eddelbuettel wrote: > | > | On 15 June 2013 at 07:47, Simon Urbanek wrote: | | > Because update.packages() doesn't restore the > group-writable bit. Which leads us to

Re: [Rd] R CMD INSTALL and file permission settings

2013-06-15 Thread Martin Maechler
> Dirk Eddelbuettel > on Fri, 14 Jun 2013 22:27:32 -0500 writes: > On 14 June 2013 at 16:56, Simon Urbanek wrote: | On Jun > 14, 2013, at 4:35 PM, Dirk Eddelbuettel wrote: | > But up > until right now I could not update a package a colleague > installed, | > and vice v

Re: [Rd] R CMD INSTALL and file permission settings

2013-06-14 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Mon, 10 Jun 2013 11:44:57 +0200 writes: >>>>> Dirk Eddelbuettel >>>>> on Sat, 8 Jun 2013 11:22:56 -0500 writes: >> Summary: >> The directory /usr/local/lib/R/sit

Re: [Rd] R CMD INSTALL and file permission settings

2013-06-10 Thread Martin Maechler
> Dirk Eddelbuettel > on Sat, 8 Jun 2013 11:22:56 -0500 writes: > Summary: > The directory /usr/local/lib/R/site-library can be used for site-wide > multi-user installations of R. > This is even the default on Debian and Ubuntu (following a suggestion by > K

Re: [Rd] Bug in stats::plot.hclust/graphics:::plotHclust/underlying C code (C_dend) in R-3.0?

2013-06-01 Thread Martin Maechler
that happened (between 2.15.x and 3.0.0) when that code was slightly streamlined and moved to the 'graphics' package. > Thanks, > Peter Thank you Peter, for reporting it in such a precise manner! Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] RFC: a "safe" uniroot() function for future R

2013-05-31 Thread Martin Maechler
> On 13-05-30 6:49 AM, Martin Maechler wrote: > >>>>>> Duncan Murdoch > >>>>>> on Thu, 30 May 2013 05:27:57 -0400 writes: > > > > > On Thu, May 30, 2013 at 4:18 AM, Martin Maechler > > > >> wrote: &

Re: [Rd] RFC: a "safe" uniroot() function for future R

2013-05-30 Thread Martin Maechler
nal Message- >> From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] >> On Behalf Of Duncan Murdoch >> Sent: Thursday, May 30, 2013 5:28 AM >> To: Martin Maechler >> Cc: R. Devel List >> Subject: Re: [Rd] RFC: a "

Re: [Rd] RFC: a "safe" uniroot() function for future R

2013-05-30 Thread Martin Maechler
>>>>> Duncan Murdoch >>>>> on Thu, 30 May 2013 05:27:57 -0400 writes: > On Thu, May 30, 2013 at 4:18 AM, Martin Maechler > wrote: >> With main R releases only happening yearly in spring, now is >> good time to consider *and* discu

[Rd] RFC: a "safe" uniroot() function for future R

2013-05-30 Thread Martin Maechler
tol=tol, maxiter=maxiter), warning = function(w)w) if(inherits(r, "warning")) stop("convergence problem in zero finding: ", r$message) else r } else uniroot(f, ..., lower=lower, upper=upper, f.low

[Rd] Documentation request Re: [R] recode categorial vars into binary data

2013-05-14 Thread Martin Maechler
> David Winsemius > on Mon, 13 May 2013 10:21:33 -0700 writes: > On May 7, 2013, at 10:54 AM, Chris Stubben wrote: >> >>> First off, stop using cbind() when it is not needed. You will not see the reason when the columns are all numeric but you will start experiencing p

Re: [Rd] multiple issues with is.unsorted()

2013-04-24 Thread Martin Maechler
More comments .. see inline >>>>> Martin Maechler >>>>> on Wed, 24 Apr 2013 11:29:39 +0200 writes: > Dear Herve, >>>>> Hervé Pagès >>>>> on Tue, 23 Apr 2013 23:09:21 -0700 writes: >> Hi, In the man page for i

Re: [Rd] multiple issues with is.unsorted()

2013-04-24 Thread Martin Maechler
Dear Herve, > Hervé Pagès > on Tue, 23 Apr 2013 23:09:21 -0700 writes: > Hi, In the man page for is.unsorted(): >Value: > A length-one logical value. All objects of length 0 > or 1 are sorted: the result will be ‘NA’ for objects of > length 2 or more

Re: [Rd] about the 'length' arg of vector()

2013-04-24 Thread Martin Maechler
3e+09 >> storage.mode(length(bigraw)) >[1] "double" > At least not always... Indeed. Thank you, Herve! Change committed to the documentation. Martin Maechler, ETH Zurich > Thanks, H. > -- > Hervé Pagès __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Empty package skeleton

2013-04-14 Thread Martin Maechler
> Dirk Eddelbuettel > on Sun, 14 Apr 2013 06:51:38 -0500 writes: > On 14 April 2013 at 14:10, Renaud Gaujoux wrote: > | Hi, > | > | I know this has been reported/asked before ( > | http://tolstoy.newcastle.edu.au/R/e15/devel/11/10/0831.html) but it would > |

Re: [Rd] removing union class

2013-03-26 Thread Martin Maechler
>>>>> "MM" == Martin Maechler >>>>> on Tue, 19 Mar 2013 17:16:42 +0100 writes: >>>>> "RG" == Renaud Gaujoux >>>>> on Sun, 17 Mar 2013 10:38:44 +0200 writes: RG> Late report is better than never isn&

Re: [Rd] numerics from a factor

2013-03-19 Thread Martin Maechler
> Ulrike Grömping > on Sat, 16 Mar 2013 13:04:07 +0100 writes: > Hi Terry, you can use type.convert instead of as.numeric > for numbers with decimals: > type.convert(levels(factor(1:6/2)), dec=unlist(options("OutDec"))) > Best, Ulrike a late and minor remark: If yo

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

2013-03-19 Thread Martin Maechler
> Simon Urbanek > 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 meaning of "u

Re: [Rd] removing union class

2013-03-19 Thread Martin Maechler
> "RG" == Renaud Gaujoux > on Sun, 17 Mar 2013 10:38:44 +0200 writes: RG> Late report is better than never isn't it? :) >> > Well,... you forgot to show the error (and the >> traceback) : >> RG> Apologies, I usually include them (and sessionInfo ...). >>

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

2013-03-15 Thread Martin Maechler
> Martin Morgan > 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 relativel

Re: [Rd] removing union class

2013-03-15 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Fri, 15 Mar 2013 11:39:18 +0100 writes: >>>>> Renaud Gaujoux >>>>> on Wed, 13 Mar 2013 13:10:44 +0200 writes: >> Hi, >> I get the following error when trying t

Re: [Rd] removing union class

2013-03-15 Thread Martin Maechler
but then you exemplify one : > Hadley, this is problematic for devtools, because load_all tries to cleanup > S4 classes when an error occurs when loading a development package and > crashes with no hint on the original error. > Thank you. > Bests, &g

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

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

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

2013-01-28 Thread Martin Maechler
nk you, Suharto, you are right... about the typo above, the tweaks below, *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(dif

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

2013-01-17 Thread Martin Maechler
> Michael Friendly > 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 >> ha

Re: [Rd] R-forge, package dependencies

2013-01-16 Thread Martin Maechler
> Nick Sabbe > 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] Regarding the recent changes to @<-

2013-01-14 Thread Martin Maechler
> François Michonneau > 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", > edge.length

Re: [Rd] "Default" accessor in S4 classes

2013-01-10 Thread Martin Maechler
> Chris Jewell > on Wed, 9 Jan 2013 13:28:49 +1300 writes: > "CJ" == Chris Jewell > 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 myObject[] syntax which makes a lot o

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

2013-01-07 Thread Martin Maechler
> Henrik Bengtsson > 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 > '_R_CHECK_CRAN_INCOMING_USE_ASP

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

2012-12-21 Thread Martin Maechler
> Terry Therneau > 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 most eff

Re: [Rd] improved methods error

2012-12-20 Thread Martin Maechler
ght. Thank you, Martin, for the patch ... [ --> R-devel revision 61376 ] Martin Maechler __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2012-12-20 Thread Martin Maechler
> Marius Hofert > 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, format.ftable() contains se

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

2012-12-14 Thread Martin Maechler
> "PJ" == Paul Johnson > on Fri, 14 Dec 2012 01:01:19 -0600 writes: PJ> On Thu, Dec 13, 2012 at 9:01 PM, Yi (Alice) Wang wrote: >> I have also encountered a similar problem. My mvabund package runs much >> faster on linux/OSX than on windows with both R/2.15.1 and R/2.15

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

2012-12-12 Thread Martin Maechler
> "CM" == Cook, Malcolm > 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] How to locate a file quickly

2012-12-10 Thread Martin Maechler
> Wincent > 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 function is

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

2012-12-10 Thread Martin Maechler
>>>>> Hin-Tak Leung >>>>> on Mon, 10 Dec 2012 09:23:14 + writes: > --- On Mon, 10/12/12, Martin Maechler wrote: [.] >> > That said ..a small bug was introduced back in >> May  . >> >> Yes, yo

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

2012-12-10 Thread Martin Maechler
> --- On Sun, 9/12/12, Dirk Eddelbuettel 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 the lin

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

2012-12-06 Thread Martin Maechler
> elijah wright > 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 figu

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 > 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 messag

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

2012-11-30 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Fri, 30 Nov 2012 11:47:07 +0100 writes: >>>>> William Dunlap >>>>> on Thu, 29 Nov 2012 02:36:54 + writes: >>> (even worse, path may contain '..' or >>&g

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

2012-11-30 Thread Martin Maechler
in recursive listings? (There always are in non-recursive ones). {with a typo s/There/They/ which I've corrected just now} Hence, call (2) always excludes "." and ".." Would you reall see the need for an option to exclude "." and "..

Re: [Rd] Not stripping attachments in R-devel e-mails

2012-11-28 Thread Martin Maechler
Unfortunately many e-mail clients nowadays no longer try put correct MIME types for the attachments, so it seems, your did neither. Martin Maechler, ETH Zurich (site maintainer of the R-*@R-project.org mailing lists). __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2012-11-28 Thread Martin Maechler
> Michael Friendly > 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 runnin

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

2012-11-28 Thread Martin Maechler
> Hervé Pagès > 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 become 2

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 >>>>> on Thu, 15 Nov 2012 23:48:12 -0800 write

Re: [Rd] suppress *specific* warnings?

2012-10-26 Thread Martin Maechler
>>>>> Duncan Murdoch >>>>> 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 the

Re: [Rd] suppress *specific* warnings?

2012-10-25 Thread Martin Maechler
... in your environment if you are US, UK or similarly based. Indeed, a *really* dangerous practice. Martin Maechler, ETH Zurich >>>>> Martin Morgan >>>>> on Tue, 23 Oct 2012 05:28:48 -0700 writes: > On 10/22/2012 09:57 AM, luke-tier...@uiowa.edu wro

Re: [Rd] Change in the RNG implementation?

2012-10-20 Thread Martin Maechler
> Duncan Murdoch > on Fri, 19 Oct 2012 19:26:39 -0400 writes: > On 12-10-19 7:04 PM, Hervé Pagès wrote: >> Hi, >> >> Looks like the implementation of random number generation changed in >> R-devel with respect to R-2.15.1. >> >> With R-2.15.1: >>

Re: [Rd] simplify2array edge case

2012-10-19 Thread Martin Maechler
n, ... ... ) had really been part 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

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

2012-09-25 Thread Martin Maechler
>>>>> Martin Morgan >>>>> 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.

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 src/main/p

Re: [Rd] methods cbind2 bind_activation disrupts cbind everywhere

2012-09-14 Thread Martin Maechler
> Martin Morgan > 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 methods:::b

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

2012-09-05 Thread Martin Maechler
> Deepayan Sarkar > on Wed, 5 Sep 2012 11:49:37 +0530 writes: > On Wed, Sep 5, 2012 at 11:41 AM, Duncan Murdoch > wrote: >> On 12-09-04 8:19 PM, Kasper Daniel Hansen wrote: >>> >>> On Tue, Sep 4, 2012 at 6:02 PM, Duncan Murdoch >>> wrote:

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

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

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

2012-09-04 Thread Martin Maechler
> Spencer Graves > 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, Duncan Murdoch

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

2012-09-03 Thread Martin Maechler
ast want that the auto-printing worked like in toplevel, so I don't have to write a print(.) around every ..i that would autoprint if in toplevel, and of course does *not* autoprint inside if(.) { .. }. Martin Maechler, ETH Zurich > Dirk > | /Henrik > --

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

2012-08-18 Thread Martin Maechler
been as.matrix(df)[,1] Now, the remaining question is: Shouldn't 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 > O

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 > 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. >&g

[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 b

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

2012-07-19 Thread Martin Maechler
>>>>> Dirk Eddelbuettel >>>>> 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&quo

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

2012-07-07 Thread Martin Maechler
> Benilton Carvalho > 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: > 1) Call t

Re: [Rd] Proposal: model.data

2012-05-04 Thread Martin Maechler
> "PJ" == Paul Johnson > 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 wrote: >> On Thu, 2012-05-03 at 10:51 -0500, Paul Johnson wrote: >>> If somebody in R Core would like this and think about >>>

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

2012-04-13 Thread Martin Maechler
I was involved in fixing it..): Indeed nowadays, packageDescription() *) *does* use the correct package version, by inspecting the "path" attribute of the package, in the same way as searchpaths() does --- a function, BTW, that I think should be known and used more than I think it is. *) packageVersion() is built on packageDescription() and hence is also correct 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] CRAN policies

2012-04-02 Thread Martin Maechler
> William Dunlap > 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] Typo in ?Logistic

2012-03-27 Thread Martin Maechler
> R Michael Weylandt > 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? yes, indeed;

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

2012-03-12 Thread Martin Maechler
> Jari Oksanen > 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 tha

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

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

2012-03-02 Thread Martin Maechler
> Karl Forner > 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 rows of

Re: [Rd] Identical copy of base function

2012-02-27 Thread Martin Maechler
read the code yet, and I am sure Matrix will "do > the right thing", but I have 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 > wrote:

Re: [Rd] Identical copy of base function

2012-02-27 Thread Martin Maechler
> Matthew Dowle > 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 base one

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

2012-02-24 Thread Martin Maechler
ing something? Yes: the argument 'unload' of detach(). In general: Now that every package has a namespace, you (and others) should learn the difference between attaching and loading - and hence detach()ing and unloading 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] requesting a new SIG mailing list

2012-02-16 Thread Martin Maechler
> I think ecology is a more inclusive term than > environmental anyway, but then I'm an ecologist. > Sarah ah, that's an interesting side issue, and at first somewhat counter intuitive to a layman like me,... but after thinking a bit about the meaning of the words, mos

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

2012-02-08 Thread Martin Maechler
PRINT_DEAL_c_eq_0 macro makes it difficult to balance the protection > stack, and R_alloc seems to be a better solution anyway. yes, I think so too. > diff attached. I'm testing that and will commit.. if things seem fine. Martin Maechler > Martin Morgan >>

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

2012-02-07 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Mon, 6 Feb 2012 15:35:36 +0100 writes: >> On Sat, Feb 4, 2012 at 10:38 AM, Martin Maechler >> wrote: >> > The help has >> > >> >> Description: >> >

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 > wrote: > > The help has > > > >> Description: > > > >>   'nrow' and 'ncol' return the number of rows or columns present in 'x'. > >>   'NCOL' and

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

2012-02-04 Thread Martin Maechler
if(length(dim(x)) > 1L || is.data.frame(x)) ncol(x) else 1L I've tested to see that it does not change any of the R 'make 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

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

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

Re: [Rd] problem with R installation package

2012-01-10 Thread Martin Maechler
> patient. For now you can install 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-deve

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

2011-12-31 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Sat, 31 Dec 2011 12:15:10 +0100 writes: >>>>> Prof Brian Ripley >>>>> on Sat, 31 Dec 2011 06:36:04 + writes: >> This is not the CRAN webmaster's address[*], and the >>

Re: [Rd] CRAN link broken

2011-12-31 Thread Martin Maechler
> Prof Brian Ripley > 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 administrator

Re: [Rd] Saving nothing with save()

2011-12-20 Thread Martin Maechler
>>>>> Simon Urbanek >>>>> on Mon, 19 Dec 2011 10:38:34 -0500 writes: > Martin, On Dec 19, 2011, at 6:39 AM, Martin Maechler > wrote: >>>>>>> Barry Rowlingson on >>>>>>> Sun, 18 Dec 2011 01:32:52

Re: [Rd] Saving nothing with save()

2011-12-19 Thread Martin Maechler
> Barry Rowlingson > 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 fusion. Its been

Re: [Rd] Undocumented functions

2011-12-16 Thread Martin Maechler
> David Scott > 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 contains us

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

2011-12-16 Thread Martin Maechler
t; > Martin Morgan Thank you, Martin. I don't have time to delve into this, before Monday, but I agree that things could/should be improved. Two quick questions/requests: 1) Is this new in R-2.14.x or R-devel, but does not happen earlier ? 2) As the 'R-devel' list allows attachments of MIME type application/x-tar application/x-compressed-tar application/x-gzip it would be most convenient to most readers of this list, and notably to R core members, if you included the packages maybe as one *.tar containing the two .tar.gz files. Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2011-12-15 Thread Martin Maechler
> peter dalgaard > 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: >>> F

<    6   7   8   9   10   11   12   13   14   15   >