title: How to give color to a given interval of rows of a DT table?
body: <p>I am using the DT library to visualize tables, but let's say I want to give a color to some rows like for example RED from row 1 to row 4:</p>
  
  <p><a href="https://i.stack.imgur.com/v6VcN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/v6VcN.png" alt="enter image description here"></a></p>
  
  <p>Also it would be really nice to change the color of the text if it's possible. After hours of searching I found this function from library DT:</p>
  
  <pre><code>datatable(df, rownames = FALSE) %&gt;%
    formatStyle(columns = "inputval", 
                background = styleInterval(c(0.7, 0.8, 0.9)-1e-6, c("white", "lightblue", "magenta", "white"))) 
  </code></pre>
  
  <p>But I need to give color to all columns not just a selected column like <code>inputval</code> in the code, can I give to <code>columns</code> value something like <code>names(df)</code> so it can give color to all columns? And styleInterval selects the values in table not the interval of rows, how can I do that so I can select the rows and give them a color?</p>