title: How to automatically enter input in readline() instead of manually entering it at the console in R?
body: <p>I have a <code>readline()</code> function in a for loop</p>
  
  <p>For Simplicity let's say I have this code:</p>
  
  <pre><code>x &lt;- character()
  for (i in 1:500)  x[i] &lt;- readline('Enter Value')
  </code></pre>
  
  <p>How can I automatically enter input instead of manually entering it at the console 500 times? </p>