Skip to content

Commit

Permalink
fix #172
Browse files Browse the repository at this point in the history
  • Loading branch information
iagogv3 authored and dcomtois committed Nov 7, 2022
1 parent 0615d52 commit 8f0c16c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/print.summarytools.R
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ print.summarytools <- function(x,
# (thus not taking advantage of print.summarytools() which makes results
# much cleaner in the console)
if (method == "pander" &&
(identical(deparse(sys.calls()[[sys.nframe() - 1]][2]), "x[[i]]()") ||
(identical(deparse(sys.calls()[[max(sys.nframe() - 1, 1)]][2]), "x[[i]]()") ||
any(grepl(pattern = "fn_call = FUN(x = X[[i]]",
x = deparse(sys.calls()[[sys.nframe() - 1]]), fixed = TRUE)))) {
x = deparse(sys.calls()[[max(sys.nframe() - 1, 1)]]), fixed = TRUE)))) {
message("For best results printing list objects with summarytools, ",
"use print(x); if by() was used, use stby() instead")
}
Expand Down

0 comments on commit 8f0c16c

Please sign in to comment.