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.
I came across this post over here: Access a URL and read Data with R
Apparently it is possible to do this with csv files. Is it possible to do the same thing for txt files?
I tried to adapt the code from this stackoverflow post for the following website: https://mantas.info/wp/wp-content/uploads/simple_esn/MackeyGlass_t17.txt
myfile <- read.txt(url("https://mantas.info/wp/wp-content/uploads/simple_esn/MackeyGlass_t17.txt"))
But it does not seem to be working.
Am I doing something wrong? Or is is not possible to directly load a txt file from a url into R?
Thanks