Skip to content

Commit afd0e48

Browse files
author
maechler
committed
report La_version() if not empty when La_library() is ""
git-svn-id: https://svn.r-project.org/R/trunk@87492 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 901ddf8 commit afd0e48

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

doc/NEWS.Rd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@
140140

141141
\item Status reporting in \code{download.file()} has been extended to
142142
report the outcome for individual files in simultaneous download.
143+
144+
\item If \code{La_library()} is empty, \code{sessionInfo()} still
145+
reports \code{La_version()} when available.
143146
}
144147
}
145148

src/library/utils/R/sessionInfo.R

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File src/library/utils/R/sessionInfo.R
22
# Part of the R package, https://www.R-project.org
33
#
4-
# Copyright (C) 1995-2023 The R Core Team
4+
# Copyright (C) 1995-2024 The R Core Team
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -175,8 +175,11 @@ print.sessionInfo <- function(x, locale = TRUE, tzone = locale,
175175
if(nzchar(blas)) cat("BLAS: ", blas, "\n")
176176
if(nzchar(lapack)) cat("LAPACK:", lapack)
177177
}
178-
if(nzchar(lapack) && nzchar(LAver <- x$LA_version) && !grepl(LAver, lapack, fixed=TRUE))
179-
cat("; LAPACK version", LAver)
178+
if(nzchar(LAver <- x$LA_version)) {
179+
if(nzchar(lapack) && !grepl(LAver, lapack, fixed=TRUE))
180+
cat("; LAPACK version", LAver)
181+
else cat(" LAPACK version", LAver)
182+
}
180183
cat("\n\n")
181184
if(RNG) {
182185
cat("Random number generation:\n"

0 commit comments

Comments
 (0)