Skip to content

Commit a44e53c

Browse files
gogonzoaverissimo
andauthored
Update R/qenv-show.R
Co-authored-by: André Veríssimo <[email protected]> Signed-off-by: Dawid Kałędkowski <[email protected]>
1 parent fa139e0 commit a44e53c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

R/qenv-show.R

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,15 @@ setMethod("show", "qenv", function(object) {
3636

3737
hidden <- setdiff(ls(object, all.names = TRUE), shown)
3838
lapply(hidden, function(x) {
39-
cat(cli::style_blurred(sprintf("- %s: [%s]\n", x, class(object[[x]])[1])))
39+
cat(
40+
cli::style_blurred(
41+
sprintf(
42+
"- %s: [%s]\n",
43+
deparse(rlang::sym(x), backtick = TRUE),
44+
class(object[[x]])[1]
45+
)
46+
)
47+
)
4048
})
4149

4250
invisible(object)

0 commit comments

Comments
 (0)