can't download books from Gutenbergr

Hello. I am a beginner with no previous relevant experience trying to do an exercise in R , topic modelling. I am reading, searching for examples but there are things that i don´t understand.
I am trying to begin by downloading the necessary books, but it doesn´t work. I tried alternatively the following codes (cran.r : gutenbergr: Search and download public domain texts from Project Gutenberg)

type or paste code here

library(gutenbergr)
library(tidytext)
library(stringr)
library(topicmodels)
library(dplyr)
library(tidyr)

titles <- c("Utopia", "The Grand Inquisitor")
books <- gutenberg_works(title %in% titles) %>%
gutenberg_download(meta_fields = "title")

utopia <- gutenberg_download(2130)
the_grand_inquisitor <- gutenberg_download(8578)

I get back :

utopia <- gutenberg_download(2130)
Warning messages:
1: In .f(.x[[i]], ...) :
Could not download a book at http://aleph.gutenberg.org/2/1/3/2130/2130.zip
2: Unknown or uninitialised column: text.
the_grand_inquisitor <- gutenberg_download(8578)

Warning messages:
1: In .f(.x[[i]], ...) :
Could not download a book at http...
2: Unknown or uninitialised column: text.

Thank you in advance

I managed to download Frankenstein with this code

library(gutenbergr)
frank  <-  gutenberg_download(84, mirror = "http://mirrors.xmission.com/gutenberg/")

so you may be hitting a mirror problem. What happens if use the above mirror?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.

I apologize, I saw your answer after i wrote my second post. Yours actually identifies the problem and gives the solution. Thank you very much!

I came across this link for alternative mirror sites:
https://www.gutenberg.org/MIRRORS.ALL