I ran into some very irritating behaviour I don't understand. Let me
illustrate with the package gdata() and the function
print.object_size() :
print(object.size(iris),units='Kb')
6.3 Kb
getAnywhere(print.object_size)
A single object matching ‘print.object_size’ was found
It was found in the
Joris Meys jorism...@gmail.com
on Fri, 24 Feb 2012 11:24:35 +0100 writes:
I ran into some very irritating behaviour I don't
understand. Let me illustrate with the package gdata()
and the function print.object_size() :
print(object.size(iris),units='Kb')
6.3 Kb
Aaargh... I should RTFM more closely. Thanks for pointing this out.
On Fri, Feb 24, 2012 at 12:20 PM, Martin Maechler
maech...@stat.math.ethz.ch wrote:
Joris Meys jorism...@gmail.com
on Fri, 24 Feb 2012 11:24:35 +0100 writes:
I ran into some very irritating behaviour I don't
On 24/02/2012 11:20, Martin Maechler wrote:
Joris Meysjorism...@gmail.com
on Fri, 24 Feb 2012 11:24:35 +0100 writes:
I ran into some very irritating behaviour I don't
understand. Let me illustrate with the package gdata()
and the function print.object_size() :
Indeed, when trying :
detach('package:gdata',unload=TRUE)
print(object.size(iris),units='Kb')
[1] 6424
However, when I do :
unloadNamespace('gdata')
gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 380471 10.2 667722 17.9 597831 16.0
Vcells 353363 2.7 905753 7.0
On Fri, 24 Feb 2012, Joris Meys wrote:
Indeed, when trying :
detach('package:gdata',unload=TRUE)
print(object.size(iris),units='Kb')
[1] 6424
However, when I do :
unloadNamespace('gdata')
gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 380471 10.2 667722 17.9 597831 16.0
2012/2/24 Prof Brian Ripley rip...@stats.ox.ac.uk:
As
getS3method('print', 'object_size')
would have confirmed the expectations of a 'one' with a less sketchy
understanding of R.
Yes, getS3method() sends you -not very surprisingly- to the one from
gdata. I realized, as
fortunes::fortune('WTFM') applies. As already pointed out, ?detach
says
If a package has a namespace, detaching it does not by default
unload the namespace (and may not even with ‘unload=TRUE’), and
detaching will not in general unload any dynamically loaded
compiled code
Maybe I should rephrase:
As mentioned by Martin, by you and by TFM (which I read),
unloadNamespaces does not remove registered S3 methods. I got the
message before. As to why it has to be this way, the people that WTFM
didn't really add much information to TFM for those who RTFM (nor do
they have
On 24.02.2012 16:55, Joris Meys wrote:
Maybe I should rephrase:
As mentioned by Martin, by you and by TFM (which I read),
unloadNamespaces does not remove registered S3 methods. I got the
message before. As to why it has to be this way, the people that WTFM
didn't really add much information
10 matches
Mail list logo