title: What is the difference between a library and a package in R?
body: <p>In <code>R</code> what is the difference between a <strong>library</strong> and a <strong>package</strong>?</p>
  
  <p>I have come across posts where people refer to packages within a library. Based on this idea I interpret it that a package lives in a library (i.e I store my packages with a designated library). However I get confused when I want to use package <strong>'x'</strong>. </p>
  
  <ul>
  <li>I am under the imperssion I need to call the library function to get package <strong>'x'</strong> to be in use  ? </li>
  <li>And once I have have called upon package <strong>'x'</strong> the functions of package <strong>'x'</strong> then become available to me ?</li>
  </ul>