Skip to content

Commit d60755c

Browse files
committed
fix the print
1 parent 12360f7 commit d60755c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

R/qenv-show.R

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ setMethod("show", "qenv", function(object) {
2727
cat(cli::style_bold(paste0(header, locked)), sep = "\n")
2828
cat(parent, "\n")
2929

30-
shown <- vapply(rlang::syms(ls(object)), deparse, character(1L), backtick = TRUE)
30+
shown <- ls(object)
3131
lapply(shown, function(x) {
32-
cat(sprintf("- %s: [%s]\n", x, class(object[[x]])[1]))
32+
cat(
33+
sprintf(
34+
"- %s: [%s]\n",
35+
deparse(rlang::sym(x), backtick = TRUE),
36+
class(object[[x]])[1]
37+
)
38+
)
3339
})
3440

3541
hidden <- setdiff(ls(object, all.names = TRUE), shown)

0 commit comments

Comments
 (0)