Skip to content

Commit

Permalink
NOTE if appropriate
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@84710 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Jul 19, 2023
1 parent 1b9acb2 commit 9b6559b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/library/tools/R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -5310,6 +5310,7 @@ add_dummies <- function(dir, Log)
INSTALL_opts <- paste(INSTALL_opts, collapse = " ")
args <- c("INSTALL", "-l", shQuote(libdir), INSTALL_opts,
shQuote(if (WINDOWS) utils::shortPathName(pkgdir) else pkgdir))
tOK <- FALSE
if (!use_install_log) {
## Case A: No redirection of stdout/stderr from installation.
## This is very rare: needs _R_CHECK_USE_INSTALL_LOG_ set
Expand Down Expand Up @@ -5367,6 +5368,7 @@ add_dummies <- function(dir, Log)
if(td[3L] >= td0) {
cpu <- sum(td[-3L])
if(cpu >= pmax(theta * td[3L], 1)) {
tOK <- TRUE
ratio <- round(cpu/td[3L], 1L)
cat(sprintf("\n Installation took CPU time %g times elapsed time\n",
ratio))
Expand Down Expand Up @@ -5860,7 +5862,10 @@ add_dummies <- function(dir, Log)
printLog0(Log, .format_lines_with_indent(notes), "\n")
printLog0(Log, sprintf("See %s for details.\n",
sQuote(outfile)))
} else resultLog(Log, "OK")
} else {
if(!tOK) resultLog(Log, "OK")
else noteLog(Log)
}
if (length(lines00)) {
ll <- sub("using", "used", lines00)
for (l in ll) messageLog(Log, l)
Expand Down

0 comments on commit 9b6559b

Please sign in to comment.