Skip to content

Commit

Permalink
visibly list env if no objects added
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Mar 2, 2024
1 parent 08f15a0 commit c3a7e6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/pool.r
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ Pool = R6::R6Class("Pool",
args = list(...)
for (name in names(args))
private$master$add_env(name, args[[name]])
invisible(private$master$list_env())
if (length(args) == 0)
private$master$list_env()
else
invisible(private$master$list_env())
},

pkg = function(...) {
Expand Down

0 comments on commit c3a7e6e

Please sign in to comment.