[Rd] R 3.6.0 "alpha" binaries

2019-04-06 Thread Dirk Eddelbuettel


If you are on Debian and want to help test the upcoming R 3.6.0 releases
coming out April 26, I just put a set of packages based on last night's
tarball into Debian's "experimental" branch.

I plan to follow up with at least one beta and rc build each, and at least
one of those will go to the normal upload branch.

Questions might be best asked on r-sig-debian; if you think I should have put
this note there drop me a line.

Thanks,  Dirk

[1] Experiemental is apart; from there packages do /not/ automatically
migrate into releases.

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] patch to improve matrix conformability error message

2019-04-06 Thread Joshua N Pritikin
With this patch,

> A <- matrix(1, 2, 2)
> B <- matrix(2, 3, 2)
> A %*% B
Error in A %*% B : 
  non-conformable arguments of dimension (2, 2) and (3, 2)

>From 205b591d4d14b5ff667325fb233a6deb08314726 Mon Sep 17 00:00:00 2001
From: Joshua Nathaniel Pritikin 
Date: Fri, 5 Apr 2019 12:03:58 -0400
Subject: [PATCH] Improve non-conformable arguments error message

---
 src/main/array.c | 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main/array.c b/src/main/array.c
index 4b95e33..cedf627 100644
--- a/src/main/array.c
+++ b/src/main/array.c
@@ -1350,15 +1350,18 @@ SEXP attribute_hidden do_matprod(SEXP call, SEXP op, 
SEXP args, SEXP rho)
 if (PRIMVAL(op) == 0) {
/* primitive, so use call */
if (ncx != nry)
-   errorcall(call, _("non-conformable arguments"));
+ errorcall(call, _("non-conformable arguments of dimension (%d, %d) 
and (%d, %d)"),
+   nrx, ncx, nry, ncy);
 }
 else if (PRIMVAL(op) == 1) {
if (nrx != nry)
-   error(_("non-conformable arguments"));
+ error(_("non-conformable arguments of dimension (%d, %d) and (%d, 
%d)"),
+   nrx, ncx, nry, ncy);
 }
 else {
if (ncx != ncy)
-   error(_("non-conformable arguments"));
+ error(_("non-conformable arguments of dimension (%d, %d) and (%d, 
%d)"),
+   nrx, ncx, nry, ncy);
 }
 
 if (isComplex(CAR(args)) || isComplex(CADR(args)))
-- 
2.19.1

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel