title: R: "read" a txt file from a URL
body: <p>I  am interested to see if it is possible to directly load (into R) txt file from a url instead of downloading it and then importing it.</p>
  <p>I came across this post over here: <a href="https://stackoverflow.com/questions/6299220/access-a-url-and-read-data-with-r">Access a URL and read Data with R</a></p>
  <p>Apparently it is possible to do this with csv files. Is it possible to do the same thing for txt files?</p>
  <p>I tried to adapt the code from this stackoverflow post for the following website: <a href="https://mantas.info/wp/wp-content/uploads/simple_esn/MackeyGlass_t17.txt" rel="nofollow noreferrer">https://mantas.info/wp/wp-content/uploads/simple_esn/MackeyGlass_t17.txt</a></p>
  <pre><code>myfile &lt;- read.txt(url(&quot;https://mantas.info/wp/wp-content/uploads/simple_esn/MackeyGlass_t17.txt&quot;))
  </code></pre>
  <p>But it does not seem to be working.</p>
  <p>Am I doing something wrong? Or is is not possible to directly load a txt file from a url into R?</p>
  <p>Thanks</p>