title: How to tell CRAN to install package dependencies automatically?
body: <p>I develop a package in R and when I check and build it in my local computer it works properly. But when I tried it in CRAN, I get a package dependencies error. My package depends on two functions of other packages.  </p>
  
  <p>If I list the other packages under the <code>description</code> using <code>Depends</code> or <code>imports</code>, will it be automatically installed with the new package? Or do I need to explicitly invoke the function <code>install.packages("packagename")</code> under the function that I've used the other packages. if this all is wrong, what is the best way to solve package dependencies in <code>R</code> inorder to pass the <code>R CMD check</code> and <code>build</code> test and submit to CRAN?</p>
  
  <p>Thank you.</p>