[rkward-devel] as.list wrong behaviour

Eduardo de Oliveira Horta eduardo.oliveirahorta at gmail.com
Tue Jan 4 14:34:24 UTC 2011


Hello there.

First of all, congratulations for the magnificent software you're building.

Now let me comment on a little problem I'm having: if I insert the following
code in a RKWard session

> B = 1000
> oblist = as.list(.GlobalEnv)

Then I get

> 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>

However, the expected behaviour would be (and that's what I get in a Rgui
session):

> B = 1000
> oblist = as.list(.GlobalEnv)
> str(oblist)
List of 1
 $ B: num 1000
> oblist$B
[1] 1000

Thanks in advance, and best regards,

Eduardo Horta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20110104/adc2c86c/attachment.html>


More information about the Rkward-devel mailing list