From andreas.leha at med.uni-goettingen.de  Wed Jun  5 09:35:31 2013
From: andreas.leha at med.uni-goettingen.de (Andreas Leha)
Date: Wed, 5 Jun 2013 09:35:31 +0200
Subject: [Rd] strange value in .Last.value
References: <87wqq94o95.fsf@med.uni-goettingen.de>
	<CAFOpNVF1=rgn6SUD9Cu7LyoFR01d_OoNj5k-two3Bua4XP3rUw@mail.gmail.com>
Message-ID: <87k3m93t8c.fsf@med.uni-goettingen.de>

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



[Rd] strange value in .Last.value
Andreas Leha