Error saying Error in open connection x rb Timeout was reached

0 votes

I'm scrap a web page. This is my code:

url_base <- "https://cran.r-project.org/web/packages/available_packages_by_name.html"
map_df(1:100, function(i){
                page <- read_html(sprintf(url_base,i))
                data.frame(IssueID = html_text(html_nodes(page,"h1")),
                       heading = html_text(html_nodes(page,"td")),
                       description = html_text(html_nodes(page,"td")))
}) -> packages

and I'm getting the following error when I try to execute it.

Error in open.connection(x, "rb") :
  Timeout was reached: Operation timed out after 10000 milliseconds with 0 out of 0 bytes received
Nov 21, 2018 in Data Analytics by Ali
• 11,360 points
4,212 views

1 answer to this question.

0 votes
Hey @Ali, even I had faced the same error, disabling the vpn worked for me. Try it and let me know if it works for you as well. Thank you:)
answered Nov 21, 2018 by Maverick
• 10,840 points

Related Questions In Data Analytics

0 votes
1 answer

": cannot open the connection" Error in R

There can be two reasons for this ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 52,350 points
5,113 views
0 votes
1 answer

Error saying "Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ"

Make sure is a factor time <- as.factor(c("pm", ...READ MORE

answered Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
7,498 views
+1 vote
1 answer

Error saying cannot open file 'file.pdf' when trying to save a plot in ggplot

You could try adding the following line ...READ MORE

answered Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
8,048 views
0 votes
1 answer

Error saying "Error in lag(x, 1) : unused argument (1)"

lag only works as expected with time-series ...READ MORE

answered Nov 16, 2018 in Data Analytics by Maverick
• 10,840 points
1,715 views
+1 vote
1 answer
+1 vote
1 answer
0 votes
1 answer

Error saying " cannot open the connection" when trying to install a package in R

Try install.packages(“package_name”, repos="http://cr ...READ MORE

answered Nov 26, 2018 in Data Analytics by Maverick
• 10,840 points
9,215 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP