title: dplyr case_when throws error names' attribute [1] must be the same length as the vector [0]
body: <p>I am running the following <code>case_when</code> inside a <code>dplyr</code> chain:</p>
  <pre><code>open_flag = case_when (
    open_flag == 0 &amp; (click_flag &gt; 0 | mirror_flag &gt; 0) ~ 1,
    TRUE ~ open
  )
  </code></pre>
  <p>All variables above are of type <code>int</code>. However, I get back this message:</p>
  <blockquote>
  <p>Caused by error in names(message) &lt;- <em>vtmp</em>: ! 'names'
  attribute [1] must be the same length as the vector [0]</p>
  </blockquote>
  <p>I have found this post (<a href="https://stackoverflow.com/questions/71199096/dplyrcase-when-inexplicably-returns-namesmessage-vtmp-error">dplyr::case_when() inexplicably returns names(message) &lt;- `*vtmp*` error</a>) that identified the issue. I don't fully understand the issue, and so I failed to apply a solution for my <code>case_when()</code> above!</p>
  <p>Note: I can solve the problem by using <code>ifelse()</code>, but I really wonder how to solve it for the <code>case_when()</code> statement!</p>