Skip to content

Commit

Permalink
print.ls_str(): FIXME
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87076 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
maechler committed Aug 29, 2024
1 parent 43d5769 commit 7cf7376
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/library/utils/R/str.R
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ print.ls_str <- function(x, max.level = 1, give.attr = FALSE,
##__ str(get(nam, envir = E, mode = M),
##__ max.level = max.level, give.attr = give.attr, ...)

## FIXME: get() should rather return a *classed* error in this case
eA <- sprintf("%s:%s", nam, n.)
o <- tryCatch(get(nam, envir = E, mode = M),
error = function(e){ attr(e, eA) <- TRUE; e })
Expand Down

0 comments on commit 7cf7376

Please sign in to comment.