title: Is it possible to use a list as autocompletion basis?
body: <p>Suppose I have a list like this : </p>
  
  <pre><code>MyList&lt;-c("Apple","Banana","Boy","Carry","Crumble",...)
  </code></pre>
  
  <p>I ask the user to enter a word :</p>
  
  <pre><code>userWord&lt;-readline("Enter a word: ")
  </code></pre>
  
  <p>The user begins to write : </p>
  
  <pre><code>Enter a word: B
  </code></pre>
  
  <p>How would it be possible to make that, when the user presses the <code>tab</code>key for example, the words beginning by 'B' (ideally, case insensitive) in <code>MyList</code> appear ? </p>
  
  <p>In other words, use <code>MyList</code>as a "basis" for autocompletion (whatever the length of the user "beginning of word" is)...</p>