-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
The "Results" portion of the log captures any returned objects from the final function call, regardless of wether they are invisible or not. I would expect it to omit invisibly returned objects since the user doesn't see these in the console. Take the following example script:
my_fun <- function(x){
return(invisible(x))
}
my_fun("do not print this")It does not print anything to the console, but running axecute via the command line produces this section in the "Results" of the log:
--------------------------------------------------------------------------------
- Messages, Output, and Result -
--------------------------------------------------------------------------------
Messages:
Output:
Result:
[1] "do not print this"
Is this expected behavior? If not, purrr::safely() returns visible=TRUE/FALSE which could be used to only print results with visible=TRUE.
Thanks!
Session Information
No response
Reproducible Example
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working