Skip to content

Commit

Permalink
summary.ncvreg(): Fixed #51
Browse files Browse the repository at this point in the history
  • Loading branch information
pbreheny committed Mar 9, 2025
1 parent 7e0cf15 commit 2fc1d6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/summary-ncvreg.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ summary.ncvreg <- function(object, lambda, which, number, cutoff, sort=TRUE, sig

print.summary.ncvreg <- function(x, digits, ...) {
digits <- if (missing(digits)) digits <- c(4, 2, 2, 3) else rep(digits, length.out=5)
if ((sys.nframe() >= 2) && (as.character(sys.call(2))[1] == "print.summary.cv.ncvreg")) {
caller <- sys.function(sys.parent())
if (!is.null(caller) && identical(caller, print.summary.cv.ncvreg)) {
skip_intro <- TRUE
} else {
skip_intro <- FALSE
Expand Down

0 comments on commit 2fc1d6b

Please sign in to comment.