title: How do I detach all objects and methods from a specific package in R?
body: <p>I need to load and detach a lot of packages in one R session (I'm looking at which functions are methods across different packages). <code>detach()</code> doesn't work for what I want, because it doesn't remove everything from the environment; for example, if you run:</p>
  
  <pre><code>require(pomp)
  detach('package:pomp', character.only = TRUE)
  print(methods('show'))
  </code></pre>
  
  <p>the <code>show,pomp.fun-method</code> is still listed, which is not a method that exists in base R. How do I remove <strong>all</strong> methods and objects associated with a package? Alternately, is there a way to create a temporary environment in R to load the package, which I can then destroy to remove all objects in methods in a package?</p>