title: Color differently positive and negative values of DT::Datatable
body: <p>I am trying to color the positive and negative values of a certain column (third) of a <code>DT::Datatable</code> with green and red colors respectively based on this code chunk, but I am not a javascript user. Is there any way to set this?    </p>
  
  <pre class="lang-r prettyprint-override"><code>library(DT)
  
  datatable(head(iris)) %&gt;% 
      formatStyle(1:4, color = JS("value % 1 === 0 ? 'red' : ''"))
  </code></pre>