Bold only rows having specific texts

Hi all,

In DT table, is there a way to bold only rows containing specific texts. For example can we color rows that has 'setosa' in Species column?


ui <- fluidPage(

server <- function(input, output, session) {
  output$table <- renderDataTable({
    datatable(iris) %>% formatStyle(
      target = 'row', fontWeight = 'bold',columns = c('setosa'))

shinyApp(ui, server)