title: Reprex does not consult the current selection on RStudio Cloud
body: <p>I would like to use reprex on RStudio Cloud</p>
  <p>The <code>reprex</code> manual says:</p>
  <blockquote>
  <p>When the clipboard is structurally unavailable, e.g., on RStudio
  Server or RStudio Cloud, reprex() consults the current selection
  instead of the clipboard</p>
  </blockquote>
  <p>However, when I select my code in the script on RStudio Cloud and type <code>reprex::reprex()</code> in the console I get the following message:</p>
  <pre><code>No user-supplied code found … so we’ve made some up. You’re welcome!
  
  ``` r
  sprintf(&quot;Happy %s!&quot;, weekdays(Sys.Date()))
  #&gt; [1] &quot;Happy Thursday!&quot;
  ```
  
  &lt;sup&gt;Created on 2021-03-18 by the [reprex package](https://reprex.tidyverse.org) (v1.0.0)&lt;/sup&gt;
  </code></pre>
  <p>Update1:
  I get following error in the console if I copy the code into the clipboard and/or select it the script:</p>
  <pre><code>&gt; reprex::reprex()
  
  ! No input provided and clipboard is not available.
  </code></pre>