Run RSelenium in parallel
<p>How would i go about running <code>RSelenium</code> in parallel.</p>

<p>The following is an example using <code>rvest</code> in parallel</p>

<pre><code>library(RSelenium)
library(rvest)
library(magrittr)
library(foreach)
library(doParallel)

URLsPar &lt;- c("http://www.example.com/", "http://s5.tinypic.com/n392s6_th.jpg", "http://s5.tinypic.com/jl1jex_th.jpg",
         "http://s6.tinypic.com/16abj1s_th.jpg", "http://s6.tinypic.com/2ymvpqa_th.jpg")

(detectCores() - 1) %&gt;%  makeCluster %&gt;% registerDoParallel

ws &lt;- foreach(x = 1:length(URLsPar), .packages = c("rvest", "magrittr", "RSelenium"))  %dopar%  {
      URLsPar[x] %&gt;% read_html %&gt;% as("character")}

stopImplicitCluster()
</code></pre>