title: Program isn't asking the user for input
body: <p>I tried everything, but my program isn't asking the user to input the number, I'm a beginner in R, Please help.</p>
  <pre><code>foo &lt;- function(){
  number&lt;-readline(prompt=&quot;Enter any number: &quot; )
  number&lt;-as.integer(number)
  return(number)
  }
  
  print(paste(foo()))
  </code></pre>