title: mc.cores > 1 is not support on windows
body: <p><a href="https://i.stack.imgur.com/EHaYQ.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/EHaYQ.jpg" alt="enter image description here"></a>I am new in R programming and I have code like below and I know that the windows does not support multicore but I don't know how to change this part of the code.
  Can someone suggest me an equivalent code without using the mc.cores feature?</p>
  
  <pre><code>rpl &lt;- unlist( lapply( waydf$geometry$coordinates , nrow ) ) # row per line
   waydf &lt;- waydf[ rpl &gt; 1 , ]
  ll &lt;- parallel::mclapply( waydf$geometry$coordinates , st_linestring,
                           mc.cores =parallel::detectCores() - 1  )
  outdf &lt;- sf::st_sf(
  line_geometry = sf::st_sfc( ll , crs = epsg ) ,
  osm_id = waydf$id
  )
  </code></pre>