Re: [Rd] R-alpha typo in ?replicate ?

2011-03-22 Thread Martin Maechler
Thank you, Ben. I'm committing the fixes. Martin >>>>> Ben Bolker >>>>> on Mon, 21 Mar 2011 23:09:29 -0400 writes: > simplify: logical or character string; should the result > be simplified to a vector, matrix or higher dimensional

Re: [Rd] another import puzzle

2011-03-26 Thread Martin Morgan
ry, not on base::summary, so without the Matrix::summary generic your object never sees the summary method for lme4 objects. So you need to Import: Matrix and importFrom(Matrix, summary). Martin Morgan exportMethods("coef","summary","show","print") exportCla

[Rd] R-2-13-alpha invalid subscript when checking for unstated dependencies

2011-03-27 Thread Martin Morgan
R version 2.13.0 alpha (2011-03-27 r55091) This error occurs when R CMD check'ing a Bioconductor package: * checking for unstated dependencies in R code ... WARNING Error in e[keep] : invalid subscript type 'list' Execution halted See the information on DESCRIPTION files in the chapter 'Creating

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-03-28 Thread Martin Maechler
--- your code example below, and it did *not* segfault for me (64-bit, Linux Fedora 13). Martin >>>>> Douglas Bates >>>>> on Mon, 28 Mar 2011 09:24:39 -0500 writes: > Can you provide the output from > sessionInfo() > so we can know the p

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-07 Thread Martin Maechler
>>>>> "HL" == Hin-Tak Leung >>>>> on Thu, 7 Apr 2011 07:51:44 +0100 writes: HL> Douglas Bates wrote: >> I isolated the problem and tested then committed a fix. I am going to >> ask Martin to upload the new release as I

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-07 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Thu, 7 Apr 2011 12:24:32 +0200 writes: >>>>> "HL" == Hin-Tak Leung >>>>> on Thu, 7 Apr 2011 07:51:44 +0100 writes: HL> Douglas Bates wrote: >>> I isolated the probl

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-07 Thread Martin Maechler
>>>>> "HL" == Hin-Tak Leung >>>>> on Thu, 07 Apr 2011 19:31:35 +0100 writes: HL> Martin Maechler wrote: >>>>>>> Martin Maechler on Thu, >>>>>>> 7 Apr 2011 12:24:32 +0200 writes: >&g

Re: [Rd] R CMD build now removes empty dirs

2011-04-11 Thread Martin Maechler
; (referenced from http://developer.r-project.org/) has not > been updated for months. Thank you, Herve. I've only now read your e-mail. (and I now also agree that --keep-empty-dirs should *not* be needed to keep an empty inst/ !) Thanks for the heads up abo

Re: [Rd] core Matrix package segfaulted on R CMD check --use-gct

2011-04-11 Thread Martin Maechler
Fantastic. Thanks a lot, Luke! I can close the thread just to say the final"it wasn't Matrix after all!" ;-) On Fri, Apr 8, 2011 at 20:48, wrote: > Fixed in R-devel by 55385 and R-2-113-branch by 55386. > > The problem was a call to install() in the C srouce code without > protectin

Re: [Rd] R CMD build --resave-data

2011-04-13 Thread Martin Maechler
TALL' should >>> behave differently (by default) depending on whether it's used >>> on a source tarball (mode 1) or a package source tree (mode >>> 2). >>> >>> I'm suggesting that, by default, the 3 commands (R CMD bu

Re: [Rd] Problem with dyn.load in R 2.13.0

2011-04-13 Thread Martin Morgan
ad for | "libR". What does 'ldd /path/to/your/survial.so' say? Does the system find libR.so? Maybe R CMD ldd /path/to/your/survival.so to pick up whatever environment R configures. Martin I have no issues whatsoever on my Ubuntu box with the packages distributed via CRAN

Re: [Rd] DESCRIPTION file and Rd examples

2011-04-15 Thread Martin Morgan
in detail; R CMD check produces a file .Rcheck/-Ex.R that contains the compiled example code, and it is in the evaluation of this file that the error occurs. So you could dissect it to discover the gory details. Martin I have GenomicRanges listed in my Imports: field, and IRanges in the Sugge

Re: [Rd] Dangerous Bug with IF function of R

2011-04-19 Thread Martin Maechler
> salmajj > on Mon, 18 Apr 2011 11:11:28 -0700 (PDT) writes: > Thanks a lot Petr it works!!! of course .. > You know for someone who is used to work with matlab it is not so obvious:) well, what do you mean with that? I'm intrigued. After such a blatantly wrong claim ab

Re: [Rd] Package Name Not Found Warning

2011-04-19 Thread Martin Morgan
ce(methods::getPacakgeName, quote(print(where))) or trace(warning, quote(print(sys.calls( somewhere early in your package (the top of the first file to be collated) you'll get messages that might point to where things are going wrong. Hope that helps, Martin ** help *** i

Re: [Rd] Package Name Not Found Warning

2011-04-19 Thread Martin Morgan
'closure' is not subsettable maybe you meant setOldClass("AffymetrixCelSet") but if I put that in a package that either Depends: or not on aroma.affymetrix then I don't see the warning in your original report. I'm not sure you've diagnosed the problem correct

[Rd] Make as.factor an S3 generic?

2011-04-20 Thread Martin Morgan
as.factor / as.ordered is not written as a generic. This differs from as.numeric, as.matrix, and other as.*. The following seems to address this and does not break make check-all. FWIW, the patch is against r55563, because with r55564 I see /home/mtmorgan/src/R-devel/src/main/dounzip.c:75:15:

Re: [Rd] Make as.factor an S3 generic?

2011-04-20 Thread Martin Morgan
On 04/20/2011 10:13 AM, William Dunlap wrote: -Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Martin Morgan Sent: Wednesday, April 20, 2011 9:56 AM To: R-devel@r-project.org Subject: [Rd] Make as.factor an S3 generic? as.factor

Re: [Rd] Make as.factor an S3 generic?

2011-04-20 Thread Martin Morgan
.double.A instead of as.numeric.A) until factor. Martin On Wed, 20 Apr 2011, Martin Morgan wrote: as.factor / as.ordered is not written as a generic. This differs from as.numeric, as.matrix, and other as.*. The following seems to address this and does not break make check-all. FWIW, the pat

Re: [Rd] FW: [Rcpp-devel] Question on 5.6 Interfacing C++ code

2011-04-23 Thread Martin Maechler
read > http://r.research.att.com/man/R-exts.html#Creating-R-packages so indeed, we should cancel the sentence The package subdirectory should be given the same name as the package. in there, or maybe rather replace it by The package subdirectory typically has the same name

Re: [Rd] An update of the Distribustions man page

2011-04-23 Thread Martin Maechler
I haven't take time to look through the R sources for such candidate pages. Suggestions are welcome. > Kind regards > Christophe Thank you for the suggestion, Christophe! Martin Maechler, ETH Zurich > -- > Christophe DUTANG > Ph. D. student at ISFA, L

Re: [Rd] request for R-exts addition

2011-04-29 Thread Martin Maechler
oncrete!) proposals for improvement are welcome. Ideally using texinfo syntax or even better a patch towards a current version of the manual /doc/manual/R-exts.texi from subversion, a nightly tarball, or simply https://svn.r-project.org/R/trunk/do

Re: [Rd] median and data frames

2011-04-29 Thread Martin Maechler
> mean.data.frame <- function(x, ...) sapply(x, mean, ...) exactly. My personal oppinion is that mean.data.frame() should never have been written. People should know, or learn, to use apply functions for such a task. The unfortunate fact that mean.data.frame() exists makes people th

Re: [Rd] R CMD check and Suggests Packages

2011-04-29 Thread Martin Morgan
ls without installing RepitoolsExamples. "if (require(RepitoolsExamples))" in an example on a man page is much preferred to \dontrun{}, as Simon mentions. Martin Morgan For more info: this is covered in the "Writing R Extensions," but is also described here: http

[Rd] Windows Rzlib.dll gzopen and friends

2011-04-29 Thread Martin Morgan
Several Bioconductor packages were expecting Windows Rzlib.dll to provide gzopen / gzread / gzseek / gzgets / gzrewind / gzclose. Are these gone for good, viz., r55624 ? Martin -- Computational Biology Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109

Re: [Rd] Kendall's tau code

2011-04-30 Thread Martin Maechler
27;t know). As I think we'd want to use this in the C code which is also underlying cor(*, method="kendall") I'll eventually want a C version, not the least because we may look into dealing with NA 's in the same -- flexible -- way that they are handled currently via the

Re: [Rd] Reference Classes: Accessing methods via [[...]], bug?

2011-05-01 Thread Martin Morgan
or invoking methods, though maybe hiding hints about important differences in object behavior -- I am dreading the introductory class where one tries to explain S3, S4, and reference classes), and partly to provide a distinction between a 'developer' API and a user API (again with quest

Re: [Rd] R CMD check and Suggests Packages

2011-05-03 Thread Martin Maechler
L) { c(gettext("Packages suggested but not available for checking:"), and similar for 'Enhances' in lieu of 'Suggests'. If Dario really uses R 2.13.0 (or newer), and he gets the above error message for a package that is not required but only

Re: [Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows

2011-05-04 Thread Martin Maechler
t and 64bit versions, in the ESS menu, or via M-x R- [Tab completion] Very nice, very useful in my eyes. Martin > Regards Ronggui > On 4 May 2011 13:26, Thomas Lumley wrote: >> On Wed, May 4, 2011 at 3:25 PM, Yihui Xie >> wrote: >>> 1. "Few

Re: [Rd] R CMD check and Suggests Packages

2011-05-04 Thread Martin Maechler
GGESTS_=false which of course is what Brian and Simon alluded to when they told you you could turn off the behavior ... Ok, so we have finally converged I think I agree with Hervé: If a user has not set the magic environment variable he should get an ERROR instead of a NOTE but the error *messa

Re: [Rd] Windows Rzlib.dll gzopen and friends

2011-05-06 Thread Martin Morgan
This change has significant consequences for Windows packages using R's zlib, including packages providing core Bioconductor functionality. Are the changes in r55624 meant to be long-term? Martin On 04/29/2011 03:13 PM, Martin Morgan wrote: Several Bioconductor packages were expe

[Rd] Devel version of R CMD build may create packages with incomplete doc/ directories

2011-05-08 Thread Martin Morgan
An .Rnw file in the vignettes/ directory might reasonably \usepackage or \include .sty, .bib, or other (e.g., image) files in the same directory or a sub-directory. The .Rnw file is copied to inst/doc and hence installed, but the additional files are not. This means that the installed .Rnw file

Re: [Rd] Add "See Also: missing" to help('exists')?

2011-05-16 Thread Martin Maechler
he post copied below. Yes. I've added such a link now... though quite disillusioned with a very vague hope that useRs would read the help page so thoroughly ... Martin Maechler, ETH Zurich SpG>Thanks, Spencer SpG> On 5/14/2011 3:30 AM, David Winsemius wrote: >

Re: [Rd] Windows Rzlib.dll gzopen and friends

2011-05-17 Thread Martin Morgan
also seems like a poor choice. What other strategies are recommended? Martin On 05/06/2011 09:58 AM, Martin Morgan wrote: This change has significant consequences for Windows packages using R's zlib, including packages providing core Bioconductor functionality. Are the changes in r55624 meant

Re: [Rd] Reference Classes/S4 Classes: can method dispatch check superclasses BEFORE resorting to method for "ANY"?

2011-05-27 Thread Martin Morgan
trying to generate an object from a virtual class ("A") > .AA$new() initialize,AA An object of class "AA" Martin The problem is that 'getRefClass("MyDataFrame")$new' calls (I think) the method that was written for "ANY". Thus even though I write a

Re: [Rd] Query super- and subclasses of a class: is there a better way than to use 'completeClassDefinition()'

2011-05-31 Thread Martin Morgan
might want is names(getClassDef("A")@subclasses) (see slotNames(class(getClassDef("A"))) for other useful info). Martin setClass(Class="A", representation=list(a="numeric")) setClass(Class="B", contains="A", representation=list(b="

Re: [Rd] S4 Slot assignment within function

2011-06-04 Thread Martin Morgan
did, apologies. Maybe you're looking for ?ReferenceClasses rather then S4 classes? Martin -Brian -- View this message in context: http://r.789695.n4.nabble.com/S4-Slot-assignment-within-function-tp3572077p3572077.html Sent from the R devel mailin

Re: [Rd] S4 class, passing argument names to function, modify original

2011-06-04 Thread Martin Morgan
our intention is that name=value to be substituted with N=99, but you end up with name=99. You could arrange to parse this correctly, but this isn't usually what you _want_ to do and I don't really understand what you're trying to accomplish. Maybe .foo.update <- functio

Re: [Rd] Reference Class error message: may be caused by lazy evaluation?

2011-06-09 Thread Martin Morgan
ll S4 new() and, for me, introduces a source of uncertainty / confusion when trying to understand why code does not work. Martin John --- > tc <- setRefClass("testclass", fields = list(a = "numeric"), + methods = list( + )) > t1

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-10 Thread Martin Morgan
turn graph 1.30. Are there ways to make dependencies on Bioconductor less complicated? Use the current version of R. FWIW, part of the motivation for hosting graph only on Bioconductor (previously it was dual-hosted) is to simplify version problems --

Re: [Rd] CRAN package with dependencies on Bioconductor

2011-06-10 Thread Martin Morgan
On 06/10/2011 05:46 PM, Kornelius Rohmeyer wrote: Dear Martin, thanks for your response. The superclass graphBase is introduced in graph 1.30. In my understanding the problem is that our package gMCP is build on CRAN for R 2.12 with the package graph in version 1.30. Unfortunately biocLite

Re: [Rd] Recent and upcoming changes to R-devel

2011-07-04 Thread Martin Morgan
29s. For Bioconductor this will certainly require new hardware across all supported platforms, and almost certainly significant effort to improve build system efficiencies. Martin Byte-compilation is quite expensive (so you definitely want to do it at install time, which requires lazy-load

[Rd] requiring NAMESPACE re-installation marked as old.packages?

2011-07-19 Thread Martin Morgan
e/mtmorgan/R/x86_64-unknown-linux-gnu-library/2.14/snow' The downloaded packages are in '/tmp/RtmpoGypnz/downloaded_packages' Warning message: In install.packages("snow", repos = "http://cran.r-project.org";) : installation of package 'snow' had

Re: [Rd] (no subject)

2011-07-19 Thread Martin Maechler
.. and I am asking the same question as Simon: Are you sure you need to use your own C code, instead of simply using the R packages 'gmp' and 'Rmpfr' and work with R code? -- Martin Maechler, ETH Zurich >> I have installed mpfr and gmp under the instructions of

Re: [Rd] short documentation suggestion for "by" --- reference simplify2array and ave

2011-07-21 Thread Martin Maechler
ay}}, \code{\link{ave}}} iw> (simplify2array, by, and ave should probably also be iw> mentioned in the "See also" section of "apply".) iw> hope this helps. Yes, thank you. I did (something like) that. -- Martin Maechler, ETH Zurich iw> /iaw

Re: [Rd] heatmap documentation typo

2011-07-21 Thread Martin Maechler
explained elsewhere in the documentation, 'NA' is required, not > 'NULL'. > An anonymous expert suggested that I should attach an svn diff file to > this report, so I will. Not necessary. I'

[Rd] reg.finalizer and connection gc -- which runs when (and why)?

2011-07-21 Thread Martin Morgan
ike the user should get a chance to clean up their mess before the system does it for them, so the above seems like a bug. But maybe there is another way to understand this? Martin -- Computational Biology Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle,

Re: [Rd] Same class name, different package

2011-07-25 Thread Martin Maechler
sing perspective: I think ImportClassesFrom(...) should be much more widely used, in order to diminish such class "conflicts". Wherever the new code produces warnings (does it?) about duplicate class names, it would be good to "advertize" the ImportClassesFrom()

Re: [Rd] 'data.frame' method for base::rep()

2011-08-03 Thread Martin Maechler
of producing unique row.names, {though, I must say, not the "optimal" one if the issue is efficiency} Rather keep using [,] and let's not get into having to maintain yet another data.frame method .. Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] X11.options().

2011-08-08 Thread Martin Maechler
Hi Rolf, please excuse a short "top-reply": As I see you are using an operating system (instead of Win..), can you try in the shell echo 'X11.options()$type' | R --vanilla --slave and does that really *not* report [1] "cairo" ?? (and BTW: Your subject had tolower("LL") instead of

Re: [Rd] X11.options().

2011-08-08 Thread Martin Maechler
>>>>> Uwe Ligges >>>>> on Mon, 8 Aug 2011 21:38:06 +0200 writes: > On 08.08.2011 10:20, Martin Maechler wrote: >> Hi Rolf, >> >> please excuse a short "top-reply": >> >> As I see you are usin

Re: [Rd] Implementing a "plugin" paradigm with R methods

2011-08-23 Thread Martin Morgan
gin(src)) ## 'Developer' classes setClass("Punct", prototype=prototype(function(src) { gsub("[[:punct:]]", "", src) }), contains="Plugin") Punct <- function() new("Punct") setClass("Digit", prototype=p

Re: [Rd] matrix bands

2011-08-26 Thread Martin Maechler
ding > it in base R. Alternatively, something like this could be > included in the Matrix package. well, see above and let us know if you see anything lacking in bandSparse(). Till now we haven't got much feedback about it, and there may well be room for improvement. Martin Mae

Re: [Rd] methods() not listing some S3 plot methods...?

2011-08-26 Thread Martin Morgan
ted by `methods()` there but not in R2.13.x. I have now compiled the development version on two It looks like the cog that has changed between release and devel is the addition of export(plot.function) and S3method(plot, "function") to the NAMESPACE of graphics. Martin Fedora insta

Re: [Rd] matrix bands

2011-08-26 Thread Martin Maechler
>>>>> Jeremy David Silver >>>>> on Fri, 26 Aug 2011 15:08:03 +0200 writes: > Thanks for the suggestion, Martin! I looked at both > Matrix::band and Matrix::bandSparse. Maybe I misunderstand the > help pages and the examples, but from what I

Re: [Rd] An example of very slow computation

2011-09-01 Thread Martin Maechler
of expm() which is faster for the special case of evaluating expm(A * t) %*% v {A matrix, v vector, t scalar} and *still* numerically reliable. Martin Maechler, ETH Zurich >> Which is why I said it applies when the system is "diagonalizable". >

Re: [Rd] repeatable segfault - on Mac

2011-09-08 Thread Martin Maechler
[R.app GUI 1.41 (5874) i386-apple-darwin9.8.0] It does not happen on Linux (different versions) nor Windows (2.13.1 patched, early August). As this is calling LAPACK code, I guess that this is yet another case where the Mac version of optimized BLAS / LAPACK is playing wrongly. Mart

Re: [Rd] repeatable segfault - on Mac

2011-09-08 Thread Martin Maechler
>>>>> Simon Urbanek >>>>> on Thu, 8 Sep 2011 09:33:23 -0400 writes: > On Sep 8, 2011, at 4:01 AM, Martin Maechler wrote: >>>>>>> David Winsemius >>>>>>> on Tue, 6 Sep 2011 00:38:13 -0400 writes: &g

Re: [Rd] How to safely using OpenMP pragma inside a .C() function?

2011-09-12 Thread Martin Morgan
t i = 0; i < it; ++i) #pragma omp critical { j = omp_get_thread_num(); SEXP elt = PROTECT(Rf_ScalarInteger(1)); INTEGER(res)[j] = INTEGER(res)[j] + INTEGER(elt)[0]; UNPROTECT(1); } UNPROTECT(1); return res; } and > dyn.load("omp.so&qu

Re: [Rd] should dir(all=TRUE) return "." and ".."?

2011-09-23 Thread Martin Maechler
'..' when simple dir(all.files=TRUE) includes them. However, from a strict description (of the argument names, and also the help file) I would have expected that both would *include* rather than omit them. But then --the scenario abov, and also more general reasoning -- would rat

Re: [Rd] broken save(..., compress="xy")

2011-09-23 Thread Martin Maechler
ved though so a typo in the input doesn't "break" > the code? well, what every ' "break" the code ' means, you are right that a more informative error message makes sense here (though, the code now is slightly longer). I've committed such a change {

Re: [Rd] cbind() crashes on raw vectors

2011-09-23 Thread Martin Morgan
else { for (i = 0; i < idx; i++) REAL(result)[n++] = REAL(u)[i % k]; } we end up writing REAL(result)[n++] = REAL(u)[i % k] even though (gdb) p TYPEOF(u) $15 = 24 i.e., RAWSXP (gdb) p TYPEOF(result) $16 = 13 i.e., INTSXP it

[Rd] WIndows Makeconf masks user-specified zlib.h

2011-09-24 Thread Martin Morgan
round this is to redefine .o rules %.o: %.c $(CC) $(MY_ZFLAGS) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c $< -o $@ Is there a better way? Can the ordering of the include search path be altered in src/gnuwin32/fixed/etc/Makeconf:160-161? Martin -- Computational Biology Fred Hutchinson Cancer Re

Re: [Rd] load.R patch suggestion

2011-09-28 Thread Martin Maechler
> Ben Bolker > on Thu, 15 Sep 2011 11:03:26 +0200 writes: > Inspired by > http://stackoverflow.com/questions/7487778/could-you-tell-me-what-this-error-means > I wrote the following very small (one-line) patch which > returns an *informative* error message when R tri

[Rd] Moderating consequences of garbage collection when in C

2011-10-04 Thread Martin Morgan
Allocating many small objects triggers numerous garbage collections as R grows its memory, seriously degrading performance. The specific use case is in creating a STRSXP of several 1,000,000's of elements of 60-100 characters each; a simplified illustration understating the effects (because the

Re: [Rd] suppressing stderr output from system() calls

2011-10-05 Thread Martin Morgan
, quiet=TRUE))), error=function(...) {}) Martin According to ?sink: Messages sent to ‘stderr()’ (including those from ‘message’, ‘warning’ and ‘stop’) can be diverted by ‘sink(type = "message")’ (see below). I'm pretty sure it's the system(), or .Internal() calls which are the

Re: [Rd] MetaCran website v1.0.0-alpha

2015-05-27 Thread Martin Maechler
native HTML version deleted]] Gabor, could you try to set a good example and *not* post in HTML (even though your messages are fine when transformed to plain text). Thank you Gabor for your effort, and best regards, Martin -- Martin http://stat.ethz.ch/people/maechler Seminar f

Re: [Rd] Fix for bug in arima function

2015-05-28 Thread Martin Maechler
ser to the current code. I have very slightly changed it, e.g., using anyNA(.), and tested it with some more examples... and this does look good to me in the sense that it is "internally more consistent". To get this going and "exposed to CRAN", I'm committing it (with the regre

Re: [Rd] building with tcltk on Ubuntu 14.04

2015-05-28 Thread Martin Maechler
--with-tk- where ever needed for me on 14.04 or earlier Ubuntu's... so I do wonder how you got into problems at all. Martin > Ben > On 15-05-26 10:25 AM, Dirk Eddelbuettel wrote: >> >> Ben, >> >> At work with little time s

Re: [Rd] S4 inheritance and old class

2015-05-28 Thread Martin Morgan
ttern) grep(pattern, slotNames(x), value = TRUE) Instead of setOldClass, define a $ method on A setMethod("$", "A", function(x, name) slot(x, name)) And then a = new("A") a$ d = new("D") d$ I don't know about the setOldClass problem; it se

[Rd] Nabble gibberish on R-devel: please stop it (Re: S3 internal ...)

2015-06-04 Thread Martin Maechler
t;generic",base_function)] and is mangled because you've post via Nabble which may always use HTML. I'd really us to consider **banning** the use of Nabble for R-devel, completely. People on this list should be able to subscribe to a mailing list and deal with mail filtering etc... Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] RFC: Declaring "foo.bar" as nonS3method() ?!

2015-06-12 Thread Martin Maechler
SO* all the other S3 > method code that all.effects should be treated as a regular R > function. > I would very much like such a feature in R, and for that reason, > I'm cross posting this (as one of the famous exceptions that > accompany real-l

Re: [Rd] RFC: Declaring "foo.bar" as nonS3method() ?!

2015-06-12 Thread Martin Maechler
u use it in your package, say because one function uses non-standard evaluation and hence 'xy', *all* erronous global uses of 'xy in all other functions in your package will *not* be flagged by the nice codetools package functionality which is behind that part of R CMD check. Martin

Re: [Rd] RFC: Declaring "foo.bar" as nonS3method() ?!

2015-06-13 Thread Martin Maechler
#x27;t know enough of the details. Also, I did not find which notes (from developer.r-project.org) you were refering to. Given the broad agreement that we want to start working / investigating this, we can well close the thread here for now (and deal with ideas, issues, details within R-core). Martin

Re: [Rd] Lack of protection bug in current R release candidate

2015-06-15 Thread Martin Maechler
replicate(30, capture.output(print(fx))) stopifnot(r[,1] == r) # ^^^ fails because of bug but the R 3.2.1 release candidate probably really cannot be touched now, with something non-trivial like this. We'd be *very* happy to get such problems during alpha or beta testing phase (or even before). Martin Maechler __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Lack of protection bug in current R release candidate

2015-06-15 Thread Martin Maechler
of all involved -- for reporting the bug here! BTW: I've committed svn rev 68519 about ten minutes ago which does fix the bug (simply applying your good advice) and contains a regression test. Thank you once more, Radford! Martin Maechler __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] back port of Bug 15899 fix missing from R 3.2.1 RC release!!!

2015-06-16 Thread Martin Maechler
ge to R-patched because I had not been 100% sure that there were no "bad" implications -- so wanted to wait a couple of days -- and then forgot... I am sorry. Still your "reminder" comes very very late in the release process for R 3.2.1. ... but as an exception,

Re: [Rd] Improving string concatenation

2015-06-19 Thread Martin Maechler
omas Lumley were *not* repeated this time (I think) https://stat.ethz.ch/pipermail/r-devel/2006-August/039012.html - Historical note: At the time, there was only 'paste()' in base R. Gabor did mention paste0() as a possible compromise, and indeed, we did add paste0() to R event

Re: [Rd] List S3 methods and defining packages

2015-07-07 Thread Martin Morgan
ts "plot.prcomp" "plot.princomp" "plot.profile.nls" graphicsstatsstats "plot.raster" "plot.spec" "plot.stepfun" stats graphics

Re: [Rd] Building r-devel fails on Ubuntu (old and new as well)

2015-07-16 Thread Martin Maechler
travis-ci.org/metacran/r-builder/builds/71225331#L7405 Yes. That's what R-devel is: "in development" and so, human errors do happen. ... and are corrected. ... already more than half an hour ago. No need to trumpet to the world... I think (R-core w

Re: [Rd] Improvements (?) in stats::poly and stats::polym.

2015-07-17 Thread Martin Maechler
here are comments in the sources that are lost in the process (of parsing, byte-compiling, saving in binary, ), but never mind: you've marked your changes well and I can use your version to modify the sources. From what I've understood, the changes make much sense and look go

Re: [Rd] Improvements (?) in stats::poly and stats::polym.

2015-07-23 Thread Martin Maechler
>>>>> "MM" == Martin Maechler >>>>> on Fri, 17 Jul 2015 18:00:28 +0200 writes: MM> Dear Keith, >>>>> >>>>> on Thu, 16 Jul 2015 08:58:11 + writes: >> Dear R Core Team, >> Last wee

Re: [Rd] all.equal: possible mismatch between behaviour and documentation

2015-07-30 Thread Martin Maechler
ctors which are mostly zero (and hence often both equal to zero), but in other cases, this may be more problematic (think of a case when also both vectors are mostly (exactly) equal, but then there are a few outliers...). But in spite of such cases, as said above, I'm almost sure this won

Re: [Rd] enableJIT in Rprofile leads to 'not a proper evaluation environment' on startup

2015-08-13 Thread Martin Maechler
daily snapshot tarballs from (new URL) https://stat.ethz.ch/R/daily/ The above failure is due to a bogous commit to the development version of R in January(!) ... and is now fixed in R-devel .. will be fixed in R 3.2.2 patched next week.. but is most probably not making it into R 3.2.2 which has been in co

Re: [Rd] Weird issue when iterating through dates

2015-08-13 Thread Martin Maechler
ut am almost sure that we could state that for(n in obj) { ... } should be semantically equivalent to for(n in as.vector(obj)) { ... } but there may be subtleties here --> posting back to R-devel so people can experiment if the above is true, and if not *where*. Mart

Re: [Rd] download.file() on ftp URL fails in windows with default download method

2015-08-16 Thread Martin Morgan
tion layer. Reports to the contrary welcome... Martin - Original Message - > Hi David, > > - Original Message - > > From: "David Smith" > > To: "Dan Tenenbaum" , "Uwe Ligges" > > , "Elliot Waingold" > >

[Rd] sprintf error: "only 100 arguments allowed"

2015-08-22 Thread Martin Bel
I'm trying to apply a function defined in the VW R docs, that attemps to convert a data.table object to Vowpal Wabbit format. In the process i'm getting the error in printf mentioned in the subject. The original function is here: https://github.com/JohnLangford/vowpal_wabbit/blob/master/R/dt2vw.R

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Martin Morgan
/pub/RWin: Line starting ' available.packages(URL, method="internal") Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin: cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/PACKAGES' Package Version Priority Depends Imports LinkingTo

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-25 Thread Martin Morgan
On 08/25/2015 01:30 PM, Kevin Ushey wrote: Hi Martin, Indeed it does (and I should have confirmed myself with R-patched and R-devel before posting...) actually I don't know that it does -- it addresses the symptom but I think there should be an error from libcurl on the 403 / 404 rather

Re: [Rd] match()/%in% with language objects?

2015-08-26 Thread Martin Maechler
(as by the subject's wording) ? Internally, in these cases the matches do happen with character coerced objects eventually; still I'd tend to agree that allowing some of these as arguments to match() in addition to the wide-sense-vectors (and NULL !) would make sense. Martin > Bi

Re: [Rd] sprintf error: "only 100 arguments allowed"

2015-08-26 Thread Martin Bel
^^^ not entirely arbitrary, but strongly linked to >> allowing %$1 to %$99 !*/ >> >> >> >> On 22/08/2015 04:21, Martin Bel wrote: >> >>> I'm trying to apply a function defined in the VW R docs, that attemps to >>> convert a dat

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-27 Thread Martin Maechler
>>>>> "DM" == Duncan Murdoch >>>>> on Wed, 26 Aug 2015 19:07:23 -0400 writes: DM> On 26/08/2015 6:04 PM, Jeroen Ooms wrote: >> On Tue, Aug 25, 2015 at 10:33 PM, Martin Morgan wrote: >>> >>> actually I don

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-27 Thread Martin Morgan
On 08/27/2015 08:16 AM, Martin Maechler wrote: "DM" == Duncan Murdoch on Wed, 26 Aug 2015 19:07:23 -0400 writes: DM> On 26/08/2015 6:04 PM, Jeroen Ooms wrote: >> On Tue, Aug 25, 2015 at 10:33 PM, Martin Morgan wrote: >>> >>> act

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-27 Thread Martin Morgan
R-devel r69197 returns appropriate errors for the cases below; I know of a few rough edges - ftp error codes are not reported correctly - download.file creates destfile before discovering that http fails, leaving an empty file on disk and am happy to hear of more. Martin On 08/27/2015 08

Re: [Rd] No new daily R-devel tarball since r69202?

2015-09-07 Thread Martin Maechler
on r69202? >>>>> >>>>> It seems, that newer R-devel versions are now >>>>> published on /pub/misc/cran/src/base-prerelease, for >>>>> example at http://ftp5.gwdg.de/pub/misc/cran/, but >>>>> without an R

Re: [Rd] R-devel_2015-09-14 throws an error in reg-packages test

2015-09-17 Thread Martin Maechler
x27; ...make[3]: *** [reg-packages.Rout] Error 1 >> make[2]: *** [test-Reg] Error 2 >> make[1]: *** [test-all-basics] Error 1 >> make: *** [check] Error 2 >> >> Looking at reg-packages.Rout.fail shows > The r-devel commit log [1] shows th

Re: [Rd] Should as.complex(NaN) -> NA?

2015-09-22 Thread Martin Maechler
" (whereas e.g., complex(re = Inf, im = NaN) considered as one of the infinitely many complex infinities by at least some of the C library implementations. --- I have found that match(), unique(), and duplicated() still behave pretty pecularly --- I'd say bugously --- even after the 69410 change. Some illustration of the above -- but with the "old" R 3.2.2 behavior is available at http://rpubs.com/maechler/complex-NAs-v3_2_2 . -- Martin Maechler __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Error generated by .Internal(nchar) disappears when debugging

2015-10-07 Thread Morgan, Martin
s is only defined in the current release version of S4Vectors, which is the only version expected to straddle R versions with different signatures. Martin Morgan > > Maybe a red herring... > > ~Malcolm > > > -Original Message- > > From: R-devel [

Re: [Rd] Unexpected failure when calling new() with unnamed arg and

2015-10-08 Thread Martin Maechler
ault > initialization worked for formula classes as well. Well, yes "of course", it was fixed quite a while ago .. as I had ("almost") promissed (below). Fixed only for R-devel though, e.g., because it potentially requires package re-installation, etc. Martin > C

Re: [Rd] R 3.2.2 64 bit compilation error on AIX

2015-10-08 Thread Martin Maechler
Core) should just apply that patch to the R/src/extras/tre/ sources. But this does not seem to be related to your original problem where compilation stopped during tools package building, or does it ? Martin Maechler, ETH Zurich > -- Vinh > On Thu, Oct 8, 2015 at 7:22 PM, Vinh N

Re: [Rd] rank(, ties.method="last")

2015-10-09 Thread Martin Maechler
else names(y) <- nm[!nas] > y > } > ## MWE > x <- c(10, 11, 11, 12, 12, 13) > rank(x, ties.method="first") > rank2(x, ties.method="last") Indeed, this makes sense to me, and is easy enough to document and maintain, and preferable to asking useRs

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