Re: [R] Downloading a directory of text files into R

2023-07-26 Thread Bob Green
Rui, Many thanks for your reply and coding, I was not expecting so much work was required. It worked perfectly. The only thing I needed to do, was create a Temp file in the Documents folder. Thanks again, Bob At 03:52 PM 7/26/2023, Rui Barradas wrote: Às 23:06 de 25/07/2023, Bob Green

Re: [R] Downloading a directory of text files into R

2023-07-25 Thread Rui Barradas
Às 23:06 de 25/07/2023, Bob Green escreveu: Hello, I am seeking advice as to how I can download the 833 files from this site:"http://home.brisnet.org.au/~bgreen/Data/; I want to be able to download them to perform a textual analysis. If the 833 files, which are in a Directory with two

Re: [R] Downloading a directory of text files into R

2023-07-25 Thread Jeff Newmiller
You cannot read files using name patterns. You can use list.files with patterns on your local filesystems, and you can use RCurl or httr contributed packages to parse out the web listing of files returned by the web server. See the example in ?RCurl. Then you can download the individual files

Re: [R] Downloading a directory of text files into R

2023-07-25 Thread Ben Bolker
Where is readtext() from? Some combination of scraping http://home.brisnet.org.au/~bgreen/Data/Hanson1/ and http://home.brisnet.org.au/~bgreen/Data/Hanson2/ to recover the required file names: library(rvest) read_html("http://home.brisnet.org.au/~bgreen/Data/Hanson1/;) |>

[R] Downloading a directory of text files into R

2023-07-25 Thread Bob Green
Hello, I am seeking advice as to how I can download the 833 files from this site:"http://home.brisnet.org.au/~bgreen/Data/; I want to be able to download them to perform a textual analysis. If the 833 files, which are in a Directory with two subfolders were on my computer I could read them