title: How to run part of r script until error is gone
body: <p>I cannot load some packages in R in one-go, so need to repeat it multiple time. So I need to load all these packages until they are completely loaded. Is there a way I can program it for repeated loading until they all are successfully loaded? </p>
  
  <pre><code>    library(biomaRt)
      library(dplyr)
      library(stringi)
      library(GenomicFeatures)
      library(Rsamtools)
      library(foreach)
      library(doMC)
      library(doMC)
  </code></pre>