[Rd] xerbla called from BLAS routine (PR#8100)

2005-08-28 Thread gb
Full_Name: Göran Broström
Version: R-2.1.1, 2.2.0
OS: Debian unstable
Submission from: (NULL) (213.65.9.59)


Some BLAS routines call xerbla for error messages, which results in a message
like
"LAPACK routine DGER gave error code -9".

Suggested solution: In 

void F77_NAME(xerbla)(char *srname, int *info)
{
   /* srname is not null-terminated.  It should be 6 characters. */
char buf[7];
strncpy(buf, srname, 6);
buf[6] = '\0';
error(_("LAPACK routine '%6s' gave error code %d"), buf, -(*info));
}

change 'LAPACK' to 'The' (or 'The BLAS/LAPACK').

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


[Rd] Wrong documentation of 'isTRUE' (PR#14212)

2010-02-10 Thread gb
Full_Name: Göran Broström
Version: 2.10.1
OS: Ubuntu 9.10
Submission from: (NULL) (85.11.40.53)


The documentation  for 'isTRUE' states that

 'isTRUE(x)' is an abbreviation of 'identical(TRUE, x)', and so is
  true if and only if 'x' is a length-one logical vector with no
  attributes (not even names).

But,

> x <- FALSE
> isTRUE(x)
[1] FALSE

is not true. Add, somewhere after 'logical vector, 'equal to TRUE', or 'taking
the value TRUE'. Maybe 'true' should be changed to 'TRUE' as well.

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


[Rd] Bug in plnorm (PR#11867)

2008-06-29 Thread gb
Full_Name: Göran Broström
Version: 2.7.1
OS: Ubuntu 8.04 (x86_64)
Submission from: (NULL) (85.11.40.53)


> plnorm(0, lower.tail = FALSE, log.p = TRUE)

returns 1 instead of the correct 0 (zero).

The same seems to hold for 

> plnorm(x, lower.tail = FALSE, log.p = TRUE)

for any negative value of x.

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