title: How to ignore case when using str_detect?
body: <p>stringr package provides good string functions.</p>
  
  <p>To search for a string (ignoring case)</p>
  
  <p>one could use</p>
  
  <pre><code>stringr::str_detect('TOYOTA subaru',ignore.case('toyota'))
  </code></pre>
  
  <p>This works but gives warning </p>
  
  <blockquote>
    <p>Please use (fixed|coll|regex)(x, ignore_case = TRUE) instead of ignore.case(x)</p>
  </blockquote>
  
  <p>What is the right way of rewriting it?</p>