title: Install R packages using docker file
body: <p>I have installed R using below line in my docker file. Please suggest how do I specify now packages to be installed in my docker file.</p>
  
  <pre><code>RUN yum -y install R-core R-devel
  </code></pre>
  
  <p>I'm doing something like this:</p>
  
  <pre><code>RUN R -e "install.packages('methods',dependencies=TRUE, repos='http://cran.rstudio.com/')"\
      &amp;&amp; R -e "install.packages('jsonlite',dependencies=TRUE, repos='http://cran.rstudio.com/')" \
      &amp;&amp; R -e "install.packages('tseries',dependencies=TRUE, repos='http://cran.rstudio.com/')" 
  </code></pre>
  
  <p>Is this the right way to do?</p>