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 b2b428d commit 12360f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/qenv-show.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ setMethod("show", "qenv", function(object) {
cat(cli::style_bold(paste0(header, locked)), sep = "\n")
cat(parent, "\n")

shown <- ls(object)
shown <- vapply(rlang::syms(ls(object)), deparse, character(1L), backtick = TRUE)
lapply(shown, function(x) {
cat(sprintf("- %s: [%s]\n", x, class(object[[x]])[1]))
})
Expand Down

0 comments on commit 12360f7

Please sign in to comment.