Skip to content

Commit

Permalink
Update R/qenv-show.R
Browse files Browse the repository at this point in the history
Co-authored-by: André Veríssimo <[email protected]>
Signed-off-by: Dawid Kałędkowski <[email protected]>
  • Loading branch information
gogonzo and averissimo authored Dec 20, 2024
1 parent fa139e0 commit a44e53c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion R/qenv-show.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ setMethod("show", "qenv", function(object) {

hidden <- setdiff(ls(object, all.names = TRUE), shown)
lapply(hidden, function(x) {
cat(cli::style_blurred(sprintf("- %s: [%s]\n", x, class(object[[x]])[1])))
cat(
cli::style_blurred(
sprintf(
"- %s: [%s]\n",
deparse(rlang::sym(x), backtick = TRUE),
class(object[[x]])[1]
)
)
)
})

invisible(object)
Expand Down

0 comments on commit a44e53c

Please sign in to comment.