Hi Winston,

Winston Chang <winstoncha...@gmail.com> writes:

> This is the result of the withVisible() function, which is called by
> source(). This should illustrate what it does:
>
>> withVisible(1+1)
> $value
> [1] 2
>
> $visible
> [1] TRUE
>
>
>> withVisible(invisible(1+1))
> $value
> [1] 2
>
> $visible
> [1] FALSE
>


Thanks for this.

But besides the technical reason of the $visible element being part of
.Last.value from a sourced statement, I guess my question is whether it
is intended to be there.

As I take it, it is.  Thus, ess/orgmode -- which relies on .Last.value
for results handling and does not expect that $visible element -- should
adapt and ignore that explicitly?

Regards,
Andreas

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to