title: Get the list of installed packages by user in R
body: <p>How we can get the list of installed packages by user in R along with its version?</p>
  
  <p>I know about the command <code>installed.packages()</code> which will give information about all packages (base or non-base). But how we can get those installed by user to have something like this:</p>
  
  <pre><code>Package    Version
  X          3.01
  Y          2.0.1
  Z          1.0.2
  </code></pre>
  
  <p>For all <strong>user</strong> installed packages (i.e. those package you installed via <code>install.packages("X")</code>)</p>