[Rd] strange value in .Last.value

Andreas Leha andreas.leha at med.uni-goettingen.de
Wed Jun 5 09:35:31 CEST 2013


Hi Winston,

Winston Chang <winstonchang1 at 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



More information about the R-devel mailing list