Skip to content
Prev 42609 / 63424 Next

function remains loaded in the search space after detaching the package

I ran into some very irritating behaviour I don't understand.  Let me
illustrate with the package gdata() and the function
print.object_size() :
6.3 Kb
A single object matching ?print.object_size? was found
It was found in the following places
  registered S3 method for print from namespace utils
  namespace:utils
with value
...

All is well. So now I load gdata
Loading required package: gdata
...
The following object(s) are masked from ?package:utils?:

    object.size

OK, this is what I would expect:
[1] 6424
2 differing objects matching ?print.object_size? were found
in the following places
  registered S3 method for print from namespace utils
  namespace:gdata
  namespace:utils
Use [] to view one of them

Now I detach gdata again
But the function print.object_size is still the default for object_size objects!
[1] 6424

And it can still be found as well:
2 differing objects matching ?print.object_size? were found
in the following places
  registered S3 method for print from namespace utils
  namespace:gdata
  namespace:utils
Use [] to view one of them

Am I missing something?

Cheers
Joris