Hello, (and a happy new year for you too!)

Apparently the problem is happening only within my RKWard sessions:
> B = 1000
> oblist = as.list(.GlobalEnv)
> str(oblist)
List of 1
 $ B:function (value)
> oblist$B
function (value)
{
    if (!missing(value)) {
        assign(k, value, envir = .rk.watched.symbols)
        .rk.do.call("ws", k)
        invisible(value)
    }
    else {
        get(k, envir = .rk.watched.symbols)
    }
}
<environment: 0x08cc9eec>

Now the same code in a regular Rgui session:
> B = 1000
> oblist = as.list(.GlobalEnv)
> str(oblist)
List of 1
 $ B: num 1000
> oblist$B
[1] 1000

Problem solved?

Best regards,

Eduardo Horta

On Tue, Jan 4, 2011 at 9:41 AM, Olivier ETERRADOSSI <
olivier.eterradossi@mines-ales.fr> wrote:

> Message: 42
>> Date: Mon, 3 Jan 2011 18:58:04 -0200
>> From: Eduardo de Oliveira Horta<eduardo.oliveirahorta@gmail.com>
>>
>> To: r-help<r-help@r-project.org>
>> Subject: Re: [R] Saving objects inside a list
>> Message-ID:
>>        <AANLkTimBXmR0RUSiWs1GrORhJH=WStOfZqdoc-90zx4q@mail.gmail.com>
>> Content-Type: text/plain
>>
>>
>> sapply(ls(),get) works fine. Thanks.
>>
>> ps: the as.list and the eapply suggestions didn't work.
>>
> Hi Eduardo (and all the best for this new year),
>
> are you sure the as.list and eapply solutions didn't work ? On my machine
> they produce a list but in "reverse order" compared to the result of
> ls(),...maybe it's the same with you :
>
> names(as.list(.GlobalEnv))[6] is the name of the 6th variable FROM THE END
> of ls().
>
> Regards. Olivier
>
> --
> Olivier ETERRADOSSI
> Maître-Assistant
> animateur du groupe Sensomines (Institut Carnot M.I.N.E.S)
> -------------------------------------------------------------
> CMGD
> Pôle "Matériaux Polymères Avancés"
> axe "Propriétés Psycho-Sensorielles des Matériaux"
> -------------------------------------------------------------
> Ecole des Mines d'Alès
> Hélioparc, 2 av. P. Angot, F-64053 PAU CEDEX 9
> tel std: +33 (0)5.59.30.54.25
> tel direct: +33 (0)5.59.30.90.35
> fax: +33 (0)5.59.30.63.68
> http://www.mines-ales.fr
> e-mail : olivier.eterradossi@mines-ales.fr
>
>
>

	[[alternative HTML version deleted]]

